Spaces:
Runtime error
Runtime error
Add application file
Browse files
app.py
CHANGED
@@ -236,15 +236,15 @@ with gr.Blocks() as demo:
|
|
236 |
with gr.Group():
|
237 |
chatbot = gr.Chatbot()
|
238 |
question = gr.Textbox()
|
239 |
-
clear = gr.ClearButton([
|
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()
|
|
|
236 |
with gr.Group():
|
237 |
chatbot = gr.Chatbot()
|
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 |
demo.launch()
|