Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -45,7 +45,7 @@ if st.button("Predict", type='primary'):
|
|
| 45 |
result = response.json()
|
| 46 |
sales_prediction = result["Sales"] # Extract only the value
|
| 47 |
st.write(
|
| 48 |
-
f"Based on the information provided, the product with ID {Product_ID} is likely to have sales of {float(sales_prediction):,
|
| 49 |
else:
|
| 50 |
st.error("Error in API request")
|
| 51 |
|
|
|
|
| 45 |
result = response.json()
|
| 46 |
sales_prediction = result["Sales"] # Extract only the value
|
| 47 |
st.write(
|
| 48 |
+
f"Based on the information provided, the product with ID {Product_ID} is likely to have sales of {float(sales_prediction):,.2f}")
|
| 49 |
else:
|
| 50 |
st.error("Error in API request")
|
| 51 |
|