Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -45,8 +45,8 @@ input_data = pd.DataFrame([{
|
|
| 45 |
if st.button("Predict"):
|
| 46 |
response = requests.post("https://kapilmika-SupreKartPredictionBackend.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 |
|
|
|
|
| 45 |
if st.button("Predict"):
|
| 46 |
response = requests.post("https://kapilmika-SupreKartPredictionBackend.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 Product Sales Revenue Price (in dollars)']
|
| 49 |
+
st.success(f"Predicted Product Sales Revenue Price (in dollars): {prediction}")
|
| 50 |
else:
|
| 51 |
st.error("Error making prediction.")
|
| 52 |
|