siddhesh1981 commited on
Commit
72b73be
·
verified ·
1 Parent(s): 91f0b49

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -40,7 +40,8 @@ if st.button('Predict',type='primary'):
40
  response=requests.post('https://siddhesh1981-FrontEnd.hf.space/v1/data',json=user_input)
41
  if response.status_code==200:
42
  result=response.json()
43
- st.success(f'Based on the information provided the forecasted sales for the superkart product_id {Product_Id} is {result['prediction']}')
 
44
  else:
45
  st.error('Error in API Request')
46
 
 
40
  response=requests.post('https://siddhesh1981-FrontEnd.hf.space/v1/data',json=user_input)
41
  if response.status_code==200:
42
  result=response.json()
43
+ prediction=result['prediction']
44
+ st.success(f'Based on the information provided the forecasted sales for the superkart product_id {Product_Id} is {prediction}')
45
  else:
46
  st.error('Error in API Request')
47