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

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -38,9 +38,9 @@ input_data={'Product_Weight':Product_Weight,
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']
 
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']