pearmut 0.0.1a3__tar.gz → 0.0.2a1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pearmut-0.0.1a3 → pearmut-0.0.2a1}/PKG-INFO +1 -1
- {pearmut-0.0.1a3 → pearmut-0.0.2a1}/pearmut.egg-info/PKG-INFO +1 -1
- {pearmut-0.0.1a3 → pearmut-0.0.2a1}/pyproject.toml +2 -2
- {pearmut-0.0.1a3 → pearmut-0.0.2a1}/server/run.py +7 -3
- {pearmut-0.0.1a3 → pearmut-0.0.2a1}/pearmut.egg-info/SOURCES.txt +0 -0
- {pearmut-0.0.1a3 → pearmut-0.0.2a1}/pearmut.egg-info/dependency_links.txt +0 -0
- {pearmut-0.0.1a3 → pearmut-0.0.2a1}/pearmut.egg-info/entry_points.txt +0 -0
- {pearmut-0.0.1a3 → pearmut-0.0.2a1}/pearmut.egg-info/requires.txt +0 -0
- {pearmut-0.0.1a3 → pearmut-0.0.2a1}/pearmut.egg-info/top_level.txt +0 -0
- {pearmut-0.0.1a3 → pearmut-0.0.2a1}/server/cli.py +0 -0
- {pearmut-0.0.1a3 → pearmut-0.0.2a1}/server/model.py +0 -0
- {pearmut-0.0.1a3 → pearmut-0.0.2a1}/server/protocols.py +0 -0
- {pearmut-0.0.1a3 → pearmut-0.0.2a1}/server/static/assets/favicon.svg +0 -0
- {pearmut-0.0.1a3 → pearmut-0.0.2a1}/server/static/assets/style.css +0 -0
- {pearmut-0.0.1a3 → pearmut-0.0.2a1}/server/static/dashboard.bundle.js +0 -0
- {pearmut-0.0.1a3 → pearmut-0.0.2a1}/server/static/dashboard.html +0 -0
- {pearmut-0.0.1a3 → pearmut-0.0.2a1}/server/static/index.html +0 -0
- {pearmut-0.0.1a3 → pearmut-0.0.2a1}/server/static/pointwise.bundle.js +0 -0
- {pearmut-0.0.1a3 → pearmut-0.0.2a1}/server/static/pointwise.html +0 -0
- {pearmut-0.0.1a3 → pearmut-0.0.2a1}/server/utils.py +0 -0
- {pearmut-0.0.1a3 → pearmut-0.0.2a1}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "pearmut"
|
|
3
|
-
version = "0.0.
|
|
3
|
+
version = "0.0.2a1"
|
|
4
4
|
description = "A tool for evaluation of model outputs, primarily MT."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
license = { text = "MIT" }
|
|
@@ -39,7 +39,7 @@ build-backend = "setuptools.build_meta"
|
|
|
39
39
|
[tool.setuptools.package-data]
|
|
40
40
|
"pearmut" = ["static/**"]
|
|
41
41
|
|
|
42
|
-
# rm -rf src/
|
|
42
|
+
# rm -rf src/server/static/; npm install src/web/ --prefix src/web/; npm run build --prefix src/web/
|
|
43
43
|
# rm -rf src/{build,dist,pearmut.egg-info}/*; python3 -m build src/
|
|
44
44
|
# python3 -m twine upload src/dist/* -u __token__
|
|
45
45
|
|
|
@@ -12,8 +12,7 @@ from pydantic import BaseModel
|
|
|
12
12
|
from .protocols import get_next_item, reset_task, log_response
|
|
13
13
|
from .utils import ROOT, load_progress_data, save_progress_data
|
|
14
14
|
|
|
15
|
-
os.makedirs("data/outputs", exist_ok=True)
|
|
16
|
-
|
|
15
|
+
os.makedirs(f"{ROOT}/data/outputs", exist_ok=True)
|
|
17
16
|
|
|
18
17
|
app = FastAPI()
|
|
19
18
|
app.add_middleware(
|
|
@@ -209,4 +208,9 @@ async def _download_progress(
|
|
|
209
208
|
|
|
210
209
|
return JSONResponse(content=output, status_code=200)
|
|
211
210
|
|
|
212
|
-
|
|
211
|
+
|
|
212
|
+
app.mount(
|
|
213
|
+
"/",
|
|
214
|
+
StaticFiles(directory=f"{os.path.dirname(os.path.abspath(__file__))}/static/" , html=True, follow_symlink=True),
|
|
215
|
+
name="static",
|
|
216
|
+
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|