Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -217,7 +217,8 @@ def generate(
|
|
217 |
|
218 |
return chat, history, user_message, ""
|
219 |
except UnknownError :
|
220 |
-
|
|
|
221 |
|
222 |
examples = [
|
223 |
"Use the gradio library to create a calculator. It should take into account the 4 basic operations. A user should be able to enter 2 numbers, choose an operation and get the corresponding result.",
|
|
|
217 |
|
218 |
return chat, history, user_message, ""
|
219 |
except UnknownError :
|
220 |
+
print("The model is currently loading. Please wait a few seconds and retry.")
|
221 |
+
#return "The model is currently loading. Please wait a few seconds and retry.", None, None, ""
|
222 |
|
223 |
examples = [
|
224 |
"Use the gradio library to create a calculator. It should take into account the 4 basic operations. A user should be able to enter 2 numbers, choose an operation and get the corresponding result.",
|