Alex Cabrera commited on
Commit
efcff68
β€’
1 Parent(s): 1768d92
pyproject.toml CHANGED
@@ -23,7 +23,7 @@ requires = ["poetry-core"]
23
  build-backend = "poetry.core.masonry.api"
24
 
25
  [tool.poetry.scripts]
26
- zeno-evals-hub = "zeno-evals-hub.runner:command_line"
27
 
28
  [tool.pyright]
29
  include = ["zeno-evals-hub"]
 
23
  build-backend = "poetry.core.masonry.api"
24
 
25
  [tool.poetry.scripts]
26
+ zeno-evals-hub = "zeno-evals-hub.main:command_line"
27
 
28
  [tool.pyright]
29
  include = ["zeno-evals-hub"]
zeno-evals-hub/__init__.py CHANGED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ from .main import command_line
2
+
3
+ command_line()
zeno-evals-hub/{runner.py β†’ main.py} RENAMED
@@ -20,7 +20,12 @@ def command_line():
20
  app = FastAPI(title="Frontend API")
21
  api_app = FastAPI(title="Backend API")
22
 
 
 
 
 
23
  app.mount("/api", api_app)
 
24
  app.mount(
25
  "/",
26
  StaticFiles(
@@ -32,3 +37,7 @@ def command_line():
32
 
33
  print("Running server")
34
  uvicorn.run(app)
 
 
 
 
 
20
  app = FastAPI(title="Frontend API")
21
  api_app = FastAPI(title="Backend API")
22
 
23
+ @api_app.get("/test")
24
+ def test():
25
+ return {"test": "test"}
26
+
27
  app.mount("/api", api_app)
28
+
29
  app.mount(
30
  "/",
31
  StaticFiles(
 
37
 
38
  print("Running server")
39
  uvicorn.run(app)
40
+
41
+
42
+ if __name__ == "__main__":
43
+ command_line()
zeno-evals-hub/requirements.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ fastapi