Upload folder using huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,6 +1,3 @@
|
|
| 1 |
-
---
|
| 2 |
-
sdk: streamlit
|
| 3 |
-
---
|
| 4 |
-------
|
| 5 |
title: SuperKartPredictionFrontend
|
| 6 |
emoji: 🏢
|
|
@@ -10,4 +7,4 @@ sdk: streamlit
|
|
| 10 |
sdk_version: streamlit==1.43.2 # Added the sdk_version field
|
| 11 |
app_file: app.py
|
| 12 |
pinned: false
|
| 13 |
-
------
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
-------
|
| 2 |
title: SuperKartPredictionFrontend
|
| 3 |
emoji: 🏢
|
|
|
|
| 7 |
sdk_version: streamlit==1.43.2 # Added the sdk_version field
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
+
------
|
app.py
CHANGED
|
@@ -46,7 +46,7 @@ if st.button("Predict"):
|
|
| 46 |
response = requests.post("https://data2aihub-SuperKartPredictionBackend.hf.space/v1/revenue", json=input_data.to_dict(orient='records')[0]) # Send data to Flask API
|
| 47 |
if response.status_code == 200:
|
| 48 |
prediction = response.json()['Predicted Revenue (in dollars)']
|
| 49 |
-
st.success(f"Predicted
|
| 50 |
else:
|
| 51 |
st.error("Error making prediction.")
|
| 52 |
|
|
|
|
| 46 |
response = requests.post("https://data2aihub-SuperKartPredictionBackend.hf.space/v1/revenue", json=input_data.to_dict(orient='records')[0]) # Send data to Flask API
|
| 47 |
if response.status_code == 200:
|
| 48 |
prediction = response.json()['Predicted Revenue (in dollars)']
|
| 49 |
+
st.success(f"Predicted Revenue for this input parameters is : {prediction}")
|
| 50 |
else:
|
| 51 |
st.error("Error making prediction.")
|
| 52 |
|