Spaces:
Sleeping
Sleeping
add app file
Browse files- app/{main.py → app.py} +1 -1
- 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 |
-
"
|
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.
|
|
|
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"]
|