Upload ./app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -38,7 +38,8 @@ input_data = {
|
|
| 38 |
# Button to trigger prediction
|
| 39 |
if st.button("Predict Sales"):
|
| 40 |
# Hugging Face proxy URL for Flask backend
|
| 41 |
-
|
|
|
|
| 42 |
|
| 43 |
try:
|
| 44 |
# Send a POST request to the backend API
|
|
|
|
| 38 |
# Button to trigger prediction
|
| 39 |
if st.button("Predict Sales"):
|
| 40 |
# Hugging Face proxy URL for Flask backend
|
| 41 |
+
# Replace with the actual URL of your deployed backend API on Hugging Face Spaces
|
| 42 |
+
backend_url = "https://bhumitps-md-be.hf.space/predict"
|
| 43 |
|
| 44 |
try:
|
| 45 |
# Send a POST request to the backend API
|