Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -242,7 +242,7 @@ def chatbot_interface():
|
|
| 242 |
file_input = gr.File(label="Upload Document")
|
| 243 |
submit_button = gr.Button("Submit")
|
| 244 |
result_output = gr.Textbox(label="Processed Output", interactive=False)
|
| 245 |
-
audio_output = gr.Audio(label="Generated Speech")
|
| 246 |
|
| 247 |
with gr.Tab("Chat with AI or Query"):
|
| 248 |
with gr.Column():
|
|
@@ -250,7 +250,7 @@ def chatbot_interface():
|
|
| 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 |
-
|
| 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])
|
|
|
|
| 242 |
file_input = gr.File(label="Upload Document")
|
| 243 |
submit_button = gr.Button("Submit")
|
| 244 |
result_output = gr.Textbox(label="Processed Output", interactive=False)
|
| 245 |
+
#audio_output = gr.Audio(label="Generated Speech")
|
| 246 |
|
| 247 |
with gr.Tab("Chat with AI or Query"):
|
| 248 |
with gr.Column():
|
|
|
|
| 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="Output 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])
|