manabb commited on
Commit
77a614a
·
verified ·
1 Parent(s): 0efb1d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py CHANGED
@@ -310,7 +310,18 @@ with gr.Blocks(title="NRL Chat for Commercial procurement", theme=gr.themes.Soft
310
  )
311
 
312
  submit_btn = gr.Button("💬 Answer with Citations", variant="primary")
 
 
 
 
 
 
313
 
 
 
 
 
 
314
  # Event handlers
315
  submit_btn.click(
316
  rag_query_with_citations,
 
310
  )
311
 
312
  submit_btn = gr.Button("💬 Answer with Citations", variant="primary")
313
+ # Event handlers - ADD THESE MISSING ONES
314
+ create_btn.click(
315
+ create_faiss_index,
316
+ inputs=[repo_id_input, pdf_upload],
317
+ outputs=[index_status]
318
+ )
319
 
320
+ clear_btn.click(
321
+ lambda: {},
322
+ outputs=[uploaded_files]
323
+ )
324
+
325
  # Event handlers
326
  submit_btn.click(
327
  rag_query_with_citations,