Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files- pyproject.toml +1 -1
- server/app.py +2 -2
pyproject.toml
CHANGED
|
@@ -19,7 +19,7 @@ dependencies = [
|
|
| 19 |
]
|
| 20 |
|
| 21 |
[project.scripts]
|
| 22 |
-
server = "server.app:
|
| 23 |
|
| 24 |
[tool.setuptools.packages.find]
|
| 25 |
include = ["bug_triage_env*", "server*"]
|
|
|
|
| 19 |
]
|
| 20 |
|
| 21 |
[project.scripts]
|
| 22 |
+
server = "server.app:main"
|
| 23 |
|
| 24 |
[tool.setuptools.packages.find]
|
| 25 |
include = ["bug_triage_env*", "server*"]
|
server/app.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
import uvicorn
|
| 2 |
from bug_triage_env.server.app import app
|
| 3 |
|
| 4 |
-
def
|
| 5 |
uvicorn.run("server.app:app", host="0.0.0.0", port=8000)
|
| 6 |
|
| 7 |
if __name__ == "__main__":
|
| 8 |
-
|
|
|
|
| 1 |
import uvicorn
|
| 2 |
from bug_triage_env.server.app import app
|
| 3 |
|
| 4 |
+
def main():
|
| 5 |
uvicorn.run("server.app:app", host="0.0.0.0", port=8000)
|
| 6 |
|
| 7 |
if __name__ == "__main__":
|
| 8 |
+
main()
|