Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -237,14 +237,14 @@ def process_document(file):
|
|
237 |
# Create Gradio interface for uploading files and interacting with the model
|
238 |
def chatbot_interface():
|
239 |
with gr.Blocks() as demo:
|
240 |
-
with gr.Tab("Upload Document"):
|
241 |
with gr.Column():
|
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"):
|
248 |
with gr.Column():
|
249 |
user_input = gr.Textbox(label="Ask a Question")
|
250 |
chat_button = gr.Button("Ask")
|
|
|
237 |
# Create Gradio interface for uploading files and interacting with the model
|
238 |
def chatbot_interface():
|
239 |
with gr.Blocks() as demo:
|
240 |
+
with gr.Tab("Upload Document [Test] (Vector + RAG)"):
|
241 |
with gr.Column():
|
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():
|
249 |
user_input = gr.Textbox(label="Ask a Question")
|
250 |
chat_button = gr.Button("Ask")
|