Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -44,8 +44,10 @@ def generate_response(user_message, history=None):
|
|
44 |
]
|
45 |
yield chat, history
|
46 |
else:
|
47 |
-
raise HTTPError(
|
48 |
-
|
|
|
|
|
49 |
|
50 |
return chat, history
|
51 |
|
|
|
44 |
]
|
45 |
yield chat, history
|
46 |
else:
|
47 |
+
raise HTTPError('Request id: %s, Status code: %s, error code: %s, error message: %s' % (
|
48 |
+
response.request_id, response.status_code,
|
49 |
+
response.code, response.message
|
50 |
+
))
|
51 |
|
52 |
return chat, history
|
53 |
|