Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -168,8 +168,8 @@ def get_response(system_message, chat_history, user_text, max_new_tokens=512):
|
|
168 |
# 🚨 Ensure the response is in English
|
169 |
response = ensure_english(response)
|
170 |
|
171 |
-
|
172 |
-
|
173 |
|
174 |
|
175 |
|
|
|
168 |
# 🚨 Ensure the response is in English
|
169 |
response = ensure_english(response)
|
170 |
|
171 |
+
# Fallback in case the generated answer is empty
|
172 |
+
if not response:
|
173 |
|
174 |
|
175 |
|