Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -31,7 +31,7 @@ product_data = {
|
|
| 31 |
|
| 32 |
if st.button("Predict", type='primary'):
|
| 33 |
st.write(f"Predicted API Triggered:")
|
| 34 |
-
response = requests.post("https://rajoosho-learning-api/v1/predict", json=product_data) # Complete the code to enter user name and space name to correctly define the endpoint
|
| 35 |
if response.status_code == 200:
|
| 36 |
result = response.json()
|
| 37 |
predicted_sales = result["Sales"]
|
|
|
|
| 31 |
|
| 32 |
if st.button("Predict", type='primary'):
|
| 33 |
st.write(f"Predicted API Triggered:")
|
| 34 |
+
response = requests.post("https://rajoosho-learning-api.hf.space/v1/predict", json=product_data) # Complete the code to enter user name and space name to correctly define the endpoint
|
| 35 |
if response.status_code == 200:
|
| 36 |
result = response.json()
|
| 37 |
predicted_sales = result["Sales"]
|