Spaces:
Sleeping
Sleeping
Commit
•
8e02856
1
Parent(s):
3b3340f
Update app.py
Browse files
app.py
CHANGED
@@ -175,9 +175,9 @@ def answer_query(question: str, chat_history):
|
|
175 |
with gr.Blocks() as demo:
|
176 |
chatbot = gr.Chatbot(label="Chatbot")
|
177 |
question = gr.Textbox(label="Ask a question", placeholder="Type your question...")
|
178 |
-
answer_button = gr.Button("Get Answer")
|
179 |
|
180 |
-
|
181 |
|
182 |
if __name__ == "__main__":
|
183 |
demo.launch()
|
|
|
175 |
with gr.Blocks() as demo:
|
176 |
chatbot = gr.Chatbot(label="Chatbot")
|
177 |
question = gr.Textbox(label="Ask a question", placeholder="Type your question...")
|
178 |
+
# answer_button = gr.Button("Get Answer")
|
179 |
|
180 |
+
question.submit(answer_query, inputs=[question, chatbot], outputs=[question, chatbot])
|
181 |
|
182 |
if __name__ == "__main__":
|
183 |
demo.launch()
|