Spaces:
Runtime error
Runtime error
Update start.sh
Browse files
start.sh
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
# Start FastAPI in the background
|
| 4 |
+
uvicorn main:app --host 0.0.0.0 --port 8000 &
|
| 5 |
+
|
| 6 |
+
# Wait a few seconds for the API to initialize
|
| 7 |
+
sleep 5
|
| 8 |
+
|
| 9 |
+
# Start Streamlit in the FOREGROUND (No '&' at the end)
|
| 10 |
+
# This keeps the container running
|
| 11 |
+
streamlit run app.py --server.port 7860 --server.address 0.0.0.0
|