zhangjf commited on
Commit
0bfc8e3
·
1 Parent(s): 28ff50c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -32,8 +32,7 @@ def ask(question, history, behavior):
32
  while response.startswith("\n"):
33
  response = response[1:]
34
  except Exception as e:
35
- print(e)
36
- response = 'Timeout! Please wait a few minutes and retry'
37
  history = history + [question, response]
38
  return history
39
 
 
32
  while response.startswith("\n"):
33
  response = response[1:]
34
  except Exception as e:
35
+ response = f'Error! You may wait a few minutes and retry:\n{e}'
 
36
  history = history + [question, response]
37
  return history
38