siddhesh1981 commited on
Commit
810220d
·
verified ·
1 Parent(s): 84d4116

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -37,10 +37,7 @@ input_data={'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=input_data)
41
- st.write("Status Code:", response.status_code)
42
- st.write("Headers:", response.headers)
43
- st.write("Raw Content:", response.text)
44
  if response.status_code==200:
45
  result=response.json()
46
  prediction=result['prediction']
 
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']