Spaces:
Runtime error
Runtime error
Update button
Browse files
app.py
CHANGED
@@ -238,13 +238,14 @@ with gr.Blocks() as demo:
|
|
238 |
question = gr.Textbox()
|
239 |
clear = gr.ClearButton([question, chatbot])
|
240 |
|
241 |
-
|
242 |
chatbot_respond,
|
243 |
inputs=[
|
244 |
question, chatbot, url, file, openAI_key, openAI_base,
|
245 |
openAI_API_version
|
246 |
],
|
247 |
-
outputs=[
|
248 |
)
|
249 |
|
|
|
250 |
demo.launch()
|
|
|
238 |
question = gr.Textbox()
|
239 |
clear = gr.ClearButton([question, chatbot])
|
240 |
|
241 |
+
question.submit(
|
242 |
chatbot_respond,
|
243 |
inputs=[
|
244 |
question, chatbot, url, file, openAI_key, openAI_base,
|
245 |
openAI_API_version
|
246 |
],
|
247 |
+
outputs=[question, chatbot],
|
248 |
)
|
249 |
|
250 |
+
|
251 |
demo.launch()
|