Spaces:
Sleeping
Sleeping
Subhash Vadaparthi commited on
Commit ·
6062e59
1
Parent(s): b00fe30
Update server entry point with main() function and refresh uv.lock
Browse filesFiles changed (2)
- pyproject.toml+1-1
- server/app.py+5-2
16 unmodified lines1718192021222316 unmodified lines][project.scripts]server = "server.app:app"[tool.setuptools.packages.find]where = ["."]16 unmodified lines1718192021222316 unmodified lines][project.scripts]server = "server.app:main"[tool.setuptools.packages.find]where = ["."]
12345from app.main import appif __name__ == "__main__":import uvicornuvicorn.run(app, host="0.0.0.0", port=7860)12345678from app.main import appimport uvicorndef main():uvicorn.run(app, host="0.0.0.0", port=7860)if __name__ == "__main__":main()
pyproject.toml+1-1
server/app.py+5-2