Update app.py
Browse files
app.py
CHANGED
|
@@ -2977,11 +2977,14 @@ def respond(message, history, max_tokens, temperature, top_p):
|
|
| 2977 |
|
| 2978 |
except Exception as e:
|
| 2979 |
if "402" in str(e):
|
|
|
|
|
|
|
|
|
|
| 2980 |
Please:<br>
|
| 2981 |
1. <a href="https://flutterwave.com/pay/gossapp" target="_blank">Reload AI-time</a><br>
|
| 2982 |
2. Try again later,or<br>
|
| 2983 |
-
3. Contact <a href="https://wa.link/x2wdpl" target="_blank">Support </a> if this persists.
|
| 2984 |
-
Tired of Manual Chatbot reset delays? <br>Consider a Subscription to have your chatbot last upto 20 times longer and fewer/ zero reset delays (Auto-reset)</div>
|
| 2985 |
""")
|
| 2986 |
else:
|
| 2987 |
custom_error = gr.HTML(f"""
|
|
|
|
| 2977 |
|
| 2978 |
except Exception as e:
|
| 2979 |
if "402" in str(e):
|
| 2980 |
+
custom_error = gr.HTML("""
|
| 2981 |
+
<div style='color: #d32f2f; background: #ffebee; padding: 10px; border-radius: 5px;'>
|
| 2982 |
+
<strong>AI-time Depleted</strong><br>
|
| 2983 |
Please:<br>
|
| 2984 |
1. <a href="https://flutterwave.com/pay/gossapp" target="_blank">Reload AI-time</a><br>
|
| 2985 |
2. Try again later,or<br>
|
| 2986 |
+
3. Contact <a href="https://wa.link/x2wdpl" target="_blank">Support </a> if this persists.<br><br>
|
| 2987 |
+
Tired of Manual Chatbot reset delays? <br> Consider a Subscription to have your chatbot last upto 20 times longer and fewer/ zero reset delays (Auto-reset)</div>
|
| 2988 |
""")
|
| 2989 |
else:
|
| 2990 |
custom_error = gr.HTML(f"""
|