pearmut 0.0.1a2__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.1a2 → pearmut-0.0.2a1}/PKG-INFO +1 -1
- {pearmut-0.0.1a2 → pearmut-0.0.2a1}/pearmut.egg-info/PKG-INFO +1 -1
- {pearmut-0.0.1a2 → pearmut-0.0.2a1}/pearmut.egg-info/SOURCES.txt +7 -7
- {pearmut-0.0.1a2 → pearmut-0.0.2a1}/pyproject.toml +4 -4
- {pearmut-0.0.1a2 → pearmut-0.0.2a1}/server/run.py +7 -3
- {pearmut-0.0.1a2 → pearmut-0.0.2a1}/pearmut.egg-info/dependency_links.txt +0 -0
- {pearmut-0.0.1a2 → pearmut-0.0.2a1}/pearmut.egg-info/entry_points.txt +0 -0
- {pearmut-0.0.1a2 → pearmut-0.0.2a1}/pearmut.egg-info/requires.txt +0 -0
- {pearmut-0.0.1a2 → pearmut-0.0.2a1}/pearmut.egg-info/top_level.txt +0 -0
- {pearmut-0.0.1a2 → pearmut-0.0.2a1}/server/cli.py +0 -0
- {pearmut-0.0.1a2 → pearmut-0.0.2a1}/server/model.py +0 -0
- {pearmut-0.0.1a2 → pearmut-0.0.2a1}/server/protocols.py +0 -0
- {pearmut-0.0.1a2 → pearmut-0.0.2a1/server}/static/assets/favicon.svg +0 -0
- {pearmut-0.0.1a2 → pearmut-0.0.2a1/server}/static/assets/style.css +0 -0
- {pearmut-0.0.1a2 → pearmut-0.0.2a1/server}/static/dashboard.bundle.js +0 -0
- {pearmut-0.0.1a2 → pearmut-0.0.2a1/server}/static/dashboard.html +0 -0
- {pearmut-0.0.1a2 → pearmut-0.0.2a1/server}/static/index.html +0 -0
- {pearmut-0.0.1a2 → pearmut-0.0.2a1/server}/static/pointwise.bundle.js +0 -0
- {pearmut-0.0.1a2 → pearmut-0.0.2a1/server}/static/pointwise.html +0 -0
- {pearmut-0.0.1a2 → pearmut-0.0.2a1}/server/utils.py +0 -0
- {pearmut-0.0.1a2 → pearmut-0.0.2a1}/setup.cfg +0 -0
|
@@ -10,10 +10,10 @@ server/model.py
|
|
|
10
10
|
server/protocols.py
|
|
11
11
|
server/run.py
|
|
12
12
|
server/utils.py
|
|
13
|
-
server
|
|
14
|
-
server
|
|
15
|
-
server
|
|
16
|
-
server
|
|
17
|
-
server
|
|
18
|
-
server
|
|
19
|
-
server
|
|
13
|
+
server/static/dashboard.bundle.js
|
|
14
|
+
server/static/dashboard.html
|
|
15
|
+
server/static/index.html
|
|
16
|
+
server/static/pointwise.bundle.js
|
|
17
|
+
server/static/pointwise.html
|
|
18
|
+
server/static/assets/favicon.svg
|
|
19
|
+
server/static/assets/style.css
|
|
@@ -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" }
|
|
@@ -37,10 +37,10 @@ requires = ["setuptools>=61.0", "wheel"]
|
|
|
37
37
|
build-backend = "setuptools.build_meta"
|
|
38
38
|
|
|
39
39
|
[tool.setuptools.package-data]
|
|
40
|
-
"pearmut" = ["
|
|
40
|
+
"pearmut" = ["static/**"]
|
|
41
41
|
|
|
42
|
-
# rm -rf src/
|
|
43
|
-
# rm -rf src/{build,dist}/*; python3 -m build src/
|
|
42
|
+
# rm -rf src/server/static/; npm install src/web/ --prefix src/web/; npm run build --prefix src/web/
|
|
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
|
|
|
46
46
|
# pip install -e src/ --config-settings editable_mode=strict
|
|
@@ -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
|