dbatcode28 commited on
Commit
1a42235
·
1 Parent(s): d84375f
Files changed (3) hide show
  1. Dockerfile +1 -1
  2. __pycache__/app.cpython-313.pyc +0 -0
  3. app.py +4 -0
Dockerfile CHANGED
@@ -12,4 +12,4 @@ COPY . .
12
 
13
  EXPOSE 7860
14
 
15
- CMD ["python", "app.py"]
 
12
 
13
  EXPOSE 7860
14
 
15
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
__pycache__/app.cpython-313.pyc CHANGED
Binary files a/__pycache__/app.cpython-313.pyc and b/__pycache__/app.cpython-313.pyc differ
 
app.py CHANGED
@@ -12,5 +12,9 @@ def main(host: str = "0.0.0.0", port: int | None = None) -> None:
12
  uvicorn.run(app, host=host, port=resolved_port)
13
 
14
 
 
 
 
 
15
  if __name__ == "__main__":
16
  main()
 
12
  uvicorn.run(app, host=host, port=resolved_port)
13
 
14
 
15
+ def uv_main():
16
+ return app
17
+
18
+
19
  if __name__ == "__main__":
20
  main()