Spaces:
Runtime error
Runtime error
circulartext
commited on
Commit
•
4f4d115
1
Parent(s):
f4c697e
Create entrypoint.sh
Browse files- entrypoint.sh +8 -0
entrypoint.sh
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/bin/bash
|
2 |
+
set -e
|
3 |
+
|
4 |
+
# Specify the path to your app.py file
|
5 |
+
APP_PATH="/app/app.py"
|
6 |
+
|
7 |
+
# Run the Uvicorn server with your FastAPI application
|
8 |
+
exec uvicorn "$APP_PATH:app" --host 0.0.0.0 --port 7860 --reload
|