molinari135 commited on
Commit
77e6014
1 Parent(s): 56e92c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -82,7 +82,7 @@ def predict_return(selected_products, total_customer_purchases, total_customer_r
82
  cart_output = "\n".join(descriptions) + f"\n\nTotal Cart Value: {round(total_value, 2)} USD"
83
 
84
  # Format the prediction results
85
- formatted_result = "\n".join([f"Product: {pred['product']} \t Prediction: {pred['prediction']} \t Confidence: {pred['confidence']*100}%" for pred in predictions])
86
 
87
  return cart_output, formatted_result
88
 
 
82
  cart_output = "\n".join(descriptions) + f"\n\nTotal Cart Value: {round(total_value, 2)} USD"
83
 
84
  # Format the prediction results
85
+ formatted_result = "\n".join([f"Product: {pred['product']} \t Prediction: {pred['prediction']} \t Confidence: {pred['confidence']}" for pred in predictions])
86
 
87
  return cart_output, formatted_result
88