ArmelR commited on
Commit
ccf4e6f
·
1 Parent(s): 351a51d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -217,7 +217,8 @@ def generate(
217
 
218
  return chat, history, user_message, ""
219
  except UnknownError :
220
- return "The model is currently loading. Please wait a few seconds and retry.", None, None, ""
 
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.",