dnzblgn commited on
Commit
496e0b4
·
verified ·
1 Parent(s): 95e0fec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -265,11 +265,11 @@ def create_interface():
265
 
266
  with gr.Column(scale=2):
267
  gr.Markdown("### 💬 Ask Questions About Your Data")
268
- chatbot = gr.ChatInterface(
269
- fn=chat_with_data,
270
- title="AI Assistant",
271
- description="Chat with your review data after processing!"
272
- )
273
 
274
  process_btn.click(fn=process_file, inputs=[file_input], outputs=[status_output], show_progress="full")
275
 
 
265
 
266
  with gr.Column(scale=2):
267
  gr.Markdown("### 💬 Ask Questions About Your Data")
268
+ question_input = gr.Textbox(label="Ask a question")
269
+ answer_output = gr.Textbox(label="Answer", interactive=False)
270
+ ask_button = gr.Button("Ask")
271
+ ask_button.click(fn=chat_with_data, inputs=[question_input, gr.State()], outputs=[answer_output])
272
+
273
 
274
  process_btn.click(fn=process_file, inputs=[file_input], outputs=[status_output], show_progress="full")
275