Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -85,6 +85,9 @@ def respond(message, history, max_tokens, temperature, top_p):
|
|
| 85 |
token = chunk.choices[0].delta.content
|
| 86 |
response += token
|
| 87 |
yield response
|
|
|
|
|
|
|
|
|
|
| 88 |
|
| 89 |
chatbot = gr.ChatInterface(
|
| 90 |
respond,
|
|
|
|
| 85 |
token = chunk.choices[0].delta.content
|
| 86 |
response += token
|
| 87 |
yield response
|
| 88 |
+
|
| 89 |
+
except Exception as e:
|
| 90 |
+
yield f"ERROR: {str(e)}"
|
| 91 |
|
| 92 |
chatbot = gr.ChatInterface(
|
| 93 |
respond,
|