Vimby commited on
Commit
52b62a7
·
verified ·
1 Parent(s): 26d39b4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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,