Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -44,7 +44,7 @@ input_data = pd.DataFrame([{
|
|
| 44 |
# Make prediction when the "Predict" button is clicked
|
| 45 |
if st.button("Predict"):
|
| 46 |
|
| 47 |
-
st.write(f"Input data: {input_data}")
|
| 48 |
response = requests.post("https://adrohit-SuperKartBackend.hf.space/v1/sales", json=input_data.to_dict(orient='records')[0]) # Send data to Flask API
|
| 49 |
if response.status_code == 200:
|
| 50 |
prediction = response.json()['Predicted Sales']
|
|
|
|
| 44 |
# Make prediction when the "Predict" button is clicked
|
| 45 |
if st.button("Predict"):
|
| 46 |
|
| 47 |
+
st.write(f"Input data: {input_data.to_dict(orient='records')[0]}")
|
| 48 |
response = requests.post("https://adrohit-SuperKartBackend.hf.space/v1/sales", json=input_data.to_dict(orient='records')[0]) # Send data to Flask API
|
| 49 |
if response.status_code == 200:
|
| 50 |
prediction = response.json()['Predicted Sales']
|