Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -53,7 +53,7 @@ if uploaded_file is not None:
|
|
| 53 |
if st.button("Predict Batch"):
|
| 54 |
#response = requests.post("https://<username>-<repo_id>.hf.space/v1/rentalbatch", files={"file": uploaded_file}) # Send file to Flask API
|
| 55 |
response = requests.post("https://rajaramsblr-rentalpricepredictionbackend.hf.space/v1/rentalbatch", files={"file": uploaded_file}) # Send file to Flask API
|
| 56 |
-
|
| 57 |
if response.status_code == 200:
|
| 58 |
predictions = response.json()
|
| 59 |
st.success("Batch predictions completed!")
|
|
|
|
| 53 |
if st.button("Predict Batch"):
|
| 54 |
#response = requests.post("https://<username>-<repo_id>.hf.space/v1/rentalbatch", files={"file": uploaded_file}) # Send file to Flask API
|
| 55 |
response = requests.post("https://rajaramsblr-rentalpricepredictionbackend.hf.space/v1/rentalbatch", files={"file": uploaded_file}) # Send file to Flask API
|
| 56 |
+
|
| 57 |
if response.status_code == 200:
|
| 58 |
predictions = response.json()
|
| 59 |
st.success("Batch predictions completed!")
|