Vineet commited on
Commit ·
72c6e93
1
Parent(s): 2b7a366
Fix Streamlit CORS issues and missing openai dependency for Gemini proxy
Browse files- ml-service/requirements.txt +1 -0
- start.sh +1 -1
ml-service/requirements.txt
CHANGED
|
@@ -20,6 +20,7 @@ websockets>=12.0
|
|
| 20 |
|
| 21 |
# --- LLM Detoxification (Gemini API) ---
|
| 22 |
google-genai>=1.0.0
|
|
|
|
| 23 |
|
| 24 |
# --- Async Utilities ---
|
| 25 |
anyio>=4.0.0
|
|
|
|
| 20 |
|
| 21 |
# --- LLM Detoxification (Gemini API) ---
|
| 22 |
google-genai>=1.0.0
|
| 23 |
+
openai>=1.0.0
|
| 24 |
|
| 25 |
# --- Async Utilities ---
|
| 26 |
anyio>=4.0.0
|
start.sh
CHANGED
|
@@ -24,4 +24,4 @@ cd ../python-frontend
|
|
| 24 |
export SAFECHAT_API_URL="http://127.0.0.1:8000"
|
| 25 |
|
| 26 |
# HF Spaces requires the app to bind to 0.0.0.0 and port 7860
|
| 27 |
-
streamlit run app.py --server.port=7860 --server.address=0.0.0.0
|
|
|
|
| 24 |
export SAFECHAT_API_URL="http://127.0.0.1:8000"
|
| 25 |
|
| 26 |
# HF Spaces requires the app to bind to 0.0.0.0 and port 7860
|
| 27 |
+
streamlit run app.py --server.port=7860 --server.address=0.0.0.0 --server.enableCORS=false --server.enableXsrfProtection=false
|