Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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-
|
| 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.
|