Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -38,7 +38,7 @@ input_data = pd.DataFrame([{
|
|
| 38 |
if st.button('Predict'):
|
| 39 |
response = requests.post(
|
| 40 |
'https://Andrew2505-SKmodel.hf.space/v1/superkart_single',
|
| 41 |
-
json = input_data.to_dict(orient="records")
|
| 42 |
)
|
| 43 |
if response.status_code == 200:
|
| 44 |
prediction = response.json()
|
|
|
|
| 38 |
if st.button('Predict'):
|
| 39 |
response = requests.post(
|
| 40 |
'https://Andrew2505-SKmodel.hf.space/v1/superkart_single',
|
| 41 |
+
json = input_data.to_dict(orient="records")[0]
|
| 42 |
)
|
| 43 |
if response.status_code == 200:
|
| 44 |
prediction = response.json()
|