siddhesh1981 commited on
Commit
96f5efb
·
verified ·
1 Parent(s): 45b6482

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -23,7 +23,7 @@ Store_Location_City_Type=st.selectbox('Store_Location_City_Type',['Tier 2', 'Tie
23
  Store_Type=st.selectbox('Store_Type',['Supermarket Type2', 'Departmental Store', 'Supermarket Type1',
24
  'Food Mart'])
25
 
26
- user_input={'Product_Weight':Product_Weight,
27
  'Product_Sugar_Content':Product_Sugar_Content,
28
  'Product_Allocated_Area':Product_Allocated_Area,
29
  'Product_Type':Product_Type,
@@ -37,7 +37,7 @@ user_input={'Product_Weight':Product_Weight,
37
  # Logic for prediction of single record.
38
 
39
  if st.button('Predict',type='primary'):
40
- response=requests.post('http://siddhesh1981-FrontEnd.hf.space/v1/data',json=user_input)
41
  if response.status_code==200:
42
  result=response.json()
43
  prediction=result['prediction']
 
23
  Store_Type=st.selectbox('Store_Type',['Supermarket Type2', 'Departmental Store', 'Supermarket Type1',
24
  'Food Mart'])
25
 
26
+ input_data={'Product_Weight':Product_Weight,
27
  'Product_Sugar_Content':Product_Sugar_Content,
28
  'Product_Allocated_Area':Product_Allocated_Area,
29
  'Product_Type':Product_Type,
 
37
  # Logic for prediction of single record.
38
 
39
  if st.button('Predict',type='primary'):
40
+ response=requests.post('http://siddhesh1981-FrontEnd.hf.space/v1/data',json=input_data)
41
  if response.status_code==200:
42
  result=response.json()
43
  prediction=result['prediction']