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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pearmut
3
- Version: 0.0.1a3
3
+ Version: 0.0.2a1
4
4
  Summary: A tool for evaluation of model outputs, primarily MT.
5
5
  Author-email: Vilém Zouhar <vilem.zouhar@gmail.com>
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pearmut
3
- Version: 0.0.1a3
3
+ Version: 0.0.2a1
4
4
  Summary: A tool for evaluation of model outputs, primarily MT.
5
5
  Author-email: Vilém Zouhar <vilem.zouhar@gmail.com>
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pearmut"
3
- version = "0.0.1a3"
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/web/static/; npm install src/web/ --prefix src/web/; npm run build --prefix src/web/
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
- app.mount("/", StaticFiles(directory="src/static", html=True), name="static")
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