aibtus commited on
Commit
5de532d
·
verified ·
1 Parent(s): ed340ab

Update streamlit_app.py

Browse files
Files changed (1) hide show
  1. 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: FIXED: Removing '/api' prefix to resolve Status 404, as the backend likely uses '/predict' directly.
9
- API_URL = "https://aibtus.ut.aiml.hf.space/predict"
 
 
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 = {