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

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -38,6 +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
  if response.status_code==200:
42
  result=response.json()
43
  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']