Spaces:
Runtime error
Runtime error
fix
Browse files
app.py
CHANGED
|
@@ -21,7 +21,7 @@ def chatbot_interface():
|
|
| 21 |
)
|
| 22 |
submit_chat_button = gr.Interface(
|
| 23 |
fn=lambda bot, question: bot(question),
|
| 24 |
-
inputs=[gr.inputs.
|
| 25 |
outputs=gr.outputs.Textbox(label="Bot Response"),
|
| 26 |
title="Chat with your Bot",
|
| 27 |
description="Type a question and click submit to get a response from your bot."
|
|
@@ -33,3 +33,4 @@ submit_init_button, submit_chat_button = chatbot_interface()
|
|
| 33 |
|
| 34 |
submit_init_button.launch()
|
| 35 |
submit_chat_button.launch()
|
|
|
|
|
|
| 21 |
)
|
| 22 |
submit_chat_button = gr.Interface(
|
| 23 |
fn=lambda bot, question: bot(question),
|
| 24 |
+
inputs=[gr.inputs.Textbox(), chatbot],
|
| 25 |
outputs=gr.outputs.Textbox(label="Bot Response"),
|
| 26 |
title="Chat with your Bot",
|
| 27 |
description="Type a question and click submit to get a response from your bot."
|
|
|
|
| 33 |
|
| 34 |
submit_init_button.launch()
|
| 35 |
submit_chat_button.launch()
|
| 36 |
+
|