Huzaifa424 commited on
Commit
5f20a58
·
verified ·
1 Parent(s): 3314548

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -82,9 +82,9 @@ def launch_interface():
82
 
83
  process_btn.click(process_pdf, inputs=[pdf_uploader], outputs=[process_output])
84
 
85
- # Create chat interface
86
  chatbot = gr.ChatInterface(
87
- lambda message: query_rag(message, 0.7, 10000, 40, 1.1, 0.95, "You are a helpful assistant.")
88
  )
89
 
90
  demo.launch(share=True) # Enable public link
 
82
 
83
  process_btn.click(process_pdf, inputs=[pdf_uploader], outputs=[process_output])
84
 
85
+ # Create chat interface with correct argument handling
86
  chatbot = gr.ChatInterface(
87
+ lambda message, history: query_rag(message, 0.7, 10000, 40, 1.1, 0.95, "You are a helpful assistant.", history)
88
  )
89
 
90
  demo.launch(share=True) # Enable public link