Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -216,8 +216,10 @@ def generate(
|
|
216 |
print(e)
|
217 |
|
218 |
return chat, history, user_message, ""
|
|
|
219 |
except UnknownError :
|
220 |
error_message = "The model is currently loading. Please wait a few seconds and retry."
|
|
|
221 |
return [(user_message, error_message)], history, user_message, ""
|
222 |
|
223 |
examples = [
|
|
|
216 |
print(e)
|
217 |
|
218 |
return chat, history, user_message, ""
|
219 |
+
|
220 |
except UnknownError :
|
221 |
error_message = "The model is currently loading. Please wait a few seconds and retry."
|
222 |
+
yield [(user_message, error_message)], history, user_message, ""
|
223 |
return [(user_message, error_message)], history, user_message, ""
|
224 |
|
225 |
examples = [
|