Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -37,7 +37,7 @@ input_data = pd.DataFrame([{
|
|
| 37 |
# Single prediction
|
| 38 |
if st.button('Predict'):
|
| 39 |
response = requests.post(
|
| 40 |
-
'https://Andrew2505-SKmodel.hf.space/superkart_single',
|
| 41 |
json = input_data.to_dict(orient="records")
|
| 42 |
)
|
| 43 |
if response.status_code == 200:
|
|
@@ -52,7 +52,7 @@ uploaded_file = st.file_uploader('Upload a CSV file', type=['csv'])
|
|
| 52 |
if uploaded_file is not None:
|
| 53 |
if st.button('Predict Batch'):
|
| 54 |
response = requests.post(
|
| 55 |
-
'https://Andrew2505-Skmodel.hf.space/superkart_batch',
|
| 56 |
files={'file': uploaded_file}
|
| 57 |
)
|
| 58 |
if response.status_code == 200:
|
|
|
|
| 37 |
# Single prediction
|
| 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:
|
|
|
|
| 52 |
if uploaded_file is not None:
|
| 53 |
if st.button('Predict Batch'):
|
| 54 |
response = requests.post(
|
| 55 |
+
'https://Andrew2505-Skmodel.hf.space/v1/superkart_batch',
|
| 56 |
files={'file': uploaded_file}
|
| 57 |
)
|
| 58 |
if response.status_code == 200:
|