Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
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
|
| 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']
|