Spaces:
Sleeping
Sleeping
Commit ·
f0fa4c5
1
Parent(s): 3651f88
chore(06-01): update requirements.txt and start.sh for FastAPI launch
Browse files- Add fastapi>=0.111.0, uvicorn[standard]>=0.29.0, websockets>=12.0, python-multipart>=0.0.9
- start.sh: replace 'exec streamlit run ui.py' with 'exec python api_server.py'
- Ever-jobs startup block and health-wait loop are untouched
- requirements.txt +6 -0
- start.sh +2 -2
requirements.txt
CHANGED
|
@@ -40,3 +40,9 @@ streamlit>=1.45.0
|
|
| 40 |
|
| 41 |
# Persistence (private HF Dataset for run history + resumes on HF Spaces)
|
| 42 |
huggingface_hub>=0.23.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
|
| 41 |
# Persistence (private HF Dataset for run history + resumes on HF Spaces)
|
| 42 |
huggingface_hub>=0.23.0
|
| 43 |
+
|
| 44 |
+
# API server (FastAPI JSON API + Streamlit reverse proxy for Chrome extension)
|
| 45 |
+
fastapi>=0.111.0
|
| 46 |
+
uvicorn[standard]>=0.29.0
|
| 47 |
+
websockets>=12.0
|
| 48 |
+
python-multipart>=0.0.9
|
start.sh
CHANGED
|
@@ -43,6 +43,6 @@ if [ $READY -eq 0 ]; then
|
|
| 43 |
echo " Dedicated scrapers (LinkedIn/Indeed/Glassdoor/Remotive/WWR/Naukri) still work."
|
| 44 |
fi
|
| 45 |
|
| 46 |
-
echo "=== Starting Streamlit ==="
|
| 47 |
cd /app
|
| 48 |
-
exec
|
|
|
|
| 43 |
echo " Dedicated scrapers (LinkedIn/Indeed/Glassdoor/Remotive/WWR/Naukri) still work."
|
| 44 |
fi
|
| 45 |
|
| 46 |
+
echo "=== Starting FastAPI + Streamlit (via api_server.py) ==="
|
| 47 |
cd /app
|
| 48 |
+
exec python api_server.py
|