Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
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 |
|