Update app.py
Browse files3 unmodified lines456789101112133 unmodified lines# Define the backend API endpoint# If running in one container with backend at port 8000:# API_URL = "http://localhost:8000/v1/predict"# If backend runs as its own Hugging Face Space:# API_URL = "https://joshd32-superkart.hf.space/v1/predict"API_URL = os.getenv("BACKEND_URL", "https://joshd32-superkart.hf.space/v1/predict")#requests.post(API_URL, json=product_data, timeout=30)st.title("SuperKart Sales Prediction App")3 unmodified lines456789101112133 unmodified lines# Define the backend API endpoint# If running in one container with backend at port 8000:API_URL = "http://localhost:8000/v1/predict"# If backend runs as its own Hugging Face Space:# API_URL = "https://joshd32-superkart.hf.space/v1/predict"# API_URL = os.getenv("BACKEND_URL", "https://joshd32-superkart.hf.space/v1/predict")#requests.post(API_URL, json=product_data, timeout=30)st.title("SuperKart Sales Prediction App")
app.py+2-2