adrohit commited on
Commit
20188d5
·
verified ·
1 Parent(s): b4490f7

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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']