Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -34,7 +34,7 @@ product_data = {
|
|
| 34 |
|
| 35 |
|
| 36 |
if st.button("Predict", type='primary'):
|
| 37 |
-
response = requests.post("https://krishpvg-
|
| 38 |
if response.status_code == 200:
|
| 39 |
result = response.json()
|
| 40 |
sales_prediction = result["prediction"] # Extract only the value
|
|
|
|
| 34 |
|
| 35 |
|
| 36 |
if st.button("Predict", type='primary'):
|
| 37 |
+
response = requests.post("https://krishpvg-sample2.hf.space/v1/sales", json=product_data) # enter user name and space name before running the cell
|
| 38 |
if response.status_code == 200:
|
| 39 |
result = response.json()
|
| 40 |
sales_prediction = result["prediction"] # Extract only the value
|