Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
start.sh
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
set -e
|
| 3 |
+
|
| 4 |
+
# HF Spaces provides $PORT; default to 7860 if not present
|
| 5 |
+
PORT=${PORT:-7860}
|
| 6 |
+
|
| 7 |
+
echo "Starting FastAPI app on port ${PORT}..."
|
| 8 |
+
uvicorn app:app --host 0.0.0.0 --port "${PORT}"
|