Spaces:
Runtime error
Runtime error
Chia Woon Yap
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -248,8 +248,9 @@ def chatbot_interface():
|
|
| 248 |
with gr.Column():
|
| 249 |
user_input = gr.Textbox(label="Ask a Question")
|
| 250 |
chat_button = gr.Button("Ask")
|
| 251 |
-
chat_output = gr.Textbox(label="Chat Response", interactive=False
|
| 252 |
-
|
|
|
|
| 253 |
|
| 254 |
submit_button.click(process_document, inputs=file_input, outputs=result_output)
|
| 255 |
chat_button.click(rag_query_handler, inputs=user_input, outputs=[chat_output, audio_output])
|
|
|
|
| 248 |
with gr.Column():
|
| 249 |
user_input = gr.Textbox(label="Ask a Question")
|
| 250 |
chat_button = gr.Button("Ask")
|
| 251 |
+
chat_output = gr.Textbox(label="Chat Response", interactive=False, elem_id="chat_output", lines=10, # Number of lines for the Textbox
|
| 252 |
+
max_lines=20, placeholder="Your response will appear here...")
|
| 253 |
+
#audio_output = gr.Audio(label="Generated Speech")
|
| 254 |
|
| 255 |
submit_button.click(process_document, inputs=file_input, outputs=result_output)
|
| 256 |
chat_button.click(rag_query_handler, inputs=user_input, outputs=[chat_output, audio_output])
|