minhpng commited on
Commit
8335d5c
·
1 Parent(s): 79c6267

add app file

Browse files
Files changed (2) hide show
  1. app/{main.py → app.py} +1 -1
  2. dockerfile +1 -1
app/{main.py → app.py} RENAMED
@@ -17,5 +17,5 @@ def read_root():
17
 
18
  if __name__ == '__main__':
19
  uvicorn.run(
20
- "main:app", reload=True)
21
 
 
17
 
18
  if __name__ == '__main__':
19
  uvicorn.run(
20
+ "app:app", reload=True)
21
 
dockerfile CHANGED
@@ -13,4 +13,4 @@ RUN pip install --no-cache-dir --upgrade -r /requirements.txt
13
  #test docker
14
 
15
  # Start the FastAPI app on port 7860, the default port expected by Spaces
16
- CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
 
13
  #test docker
14
 
15
  # Start the FastAPI app on port 7860, the default port expected by Spaces
16
+ CMD ["uvicorn", "app.app:app", "--host", "0.0.0.0", "--port", "7860"]