Spaces:
Build error
Build error
Update app.py
Browse files
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
|