SyedZainAliShah commited on
Commit
ec96f3d
·
verified ·
1 Parent(s): 9c493f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -280,15 +280,15 @@ with gr.Blocks(title="Enhanced RAG Chatbot") as demo:
280
  download_file = gr.File(label="Download")
281
 
282
  with gr.Column(scale=2):
283
- # ChatInterface - REMOVED type="messages" parameter
284
  chat_interface = gr.ChatInterface(
285
  fn=chat,
286
  chatbot=gr.Chatbot(height=500, label="Conversation"),
287
- textbox=gr.Textbox(label="Ask a question", placeholder="Type your question here...", lines=2),
288
- submit_btn="Ask",
289
- retry_btn=None,
290
- undo_btn=None,
291
- clear_btn="Clear Chat"
292
  )
293
 
294
  # Process files
 
280
  download_file = gr.File(label="Download")
281
 
282
  with gr.Column(scale=2):
283
+ # Simplified ChatInterface compatible with Gradio 4.44.1
284
  chat_interface = gr.ChatInterface(
285
  fn=chat,
286
  chatbot=gr.Chatbot(height=500, label="Conversation"),
287
+ textbox=gr.Textbox(
288
+ label="Ask a question",
289
+ placeholder="Type your question here...",
290
+ lines=2
291
+ )
292
  )
293
 
294
  # Process files