Spaces:
Sleeping
Sleeping
Commit ·
165dbe4
1
Parent(s): 0537438
Updated
Browse files- Dockerfile +3 -0
- main.py +2 -0
Dockerfile
CHANGED
|
@@ -34,3 +34,6 @@ EXPOSE 7860
|
|
| 34 |
# Command to run the application
|
| 35 |
# We use uvicorn to serve the FastAPI app which also serves the frontend
|
| 36 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
# Command to run the application
|
| 35 |
# We use uvicorn to serve the FastAPI app which also serves the frontend
|
| 36 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
# reload trigger
|
main.py
CHANGED
|
@@ -102,3 +102,5 @@ async def health_check():
|
|
| 102 |
if __name__ == "__main__":
|
| 103 |
import uvicorn
|
| 104 |
uvicorn.run(app, host="0.0.0.0", port=8000)
|
|
|
|
|
|
|
|
|
| 102 |
if __name__ == "__main__":
|
| 103 |
import uvicorn
|
| 104 |
uvicorn.run(app, host="0.0.0.0", port=8000)
|
| 105 |
+
|
| 106 |
+
|