Abs6187 commited on
Commit
0657ba5
·
verified ·
1 Parent(s): e95fcf4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -116,7 +116,7 @@ def predict_churn(customer_id, region, plan_type, monthly_charges, total_charges
116
  print(f"Prediction error: {e}") # Log the real error for debugging
117
  if GOOGLE_API_KEY:
118
  try:
119
- gemini_model = genai.GenerativeModel('gemini-1.5-flash')
120
  prompt = f"""
121
  An error occurred in a telecom churn prediction app. The technical error was: '{str(e)}'.
122
  Generate a concise, friendly, non-technical message for the user.
 
116
  print(f"Prediction error: {e}") # Log the real error for debugging
117
  if GOOGLE_API_KEY:
118
  try:
119
+ gemini_model = genai.GenerativeModel('gemini-2.5-flash')
120
  prompt = f"""
121
  An error occurred in a telecom churn prediction app. The technical error was: '{str(e)}'.
122
  Generate a concise, friendly, non-technical message for the user.