Spaces:
Sleeping
Sleeping
Update streamlit_app.py
Browse files- streamlit_app.py +4 -2
streamlit_app.py
CHANGED
|
@@ -5,8 +5,10 @@ import pandas as pd
|
|
| 5 |
import requests
|
| 6 |
|
| 7 |
# ----------------- CONFIGURATION -----------------
|
| 8 |
-
# CRITICAL
|
| 9 |
-
|
|
|
|
|
|
|
| 10 |
|
| 11 |
# Define static categorical options (MUST match preprocessing categories)
|
| 12 |
CATEGORIES = {
|
|
|
|
| 5 |
import requests
|
| 6 |
|
| 7 |
# ----------------- CONFIGURATION -----------------
|
| 8 |
+
# CRITICAL FIX: Setting the path to /api/predict.
|
| 9 |
+
# The backend Flask app listens on '/predict', but the HF Space infrastructure
|
| 10 |
+
# requires the /api/ prefix for external routing to the Docker container.
|
| 11 |
+
API_URL = "https://aibtus.ut.aiml.hf.space/api/predict"
|
| 12 |
|
| 13 |
# Define static categorical options (MUST match preprocessing categories)
|
| 14 |
CATEGORIES = {
|