anand004 commited on
Commit
9b1d677
·
verified ·
1 Parent(s): 5cb8c4f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -2
app.py CHANGED
@@ -452,12 +452,22 @@ with gr.Blocks(css=CSS, theme=gr.themes.Soft(text_size=sizes.text_md)) as demo:
452
  ],
453
  [chatbot, references, ret_images],
454
  )
455
-
456
  msg.submit(
457
  conversation,
458
- [vectordb, msg, num_context, img_context, chatbot, hf_token, model_path],
 
 
 
 
 
 
 
 
 
 
459
  [chatbot, references, ret_images],
460
  )
 
461
  documents.change(lambda: "<h1 style='text-align: center'>Click the 'Extract' button to extract data from PDFs<h1>", None, prog)
462
 
463
  back_p1.click(lambda: gr.Tabs(selected=0), None, tabs)
 
452
  ],
453
  [chatbot, references, ret_images],
454
  )
 
455
  msg.submit(
456
  conversation,
457
+ [
458
+ vectordb,
459
+ msg,
460
+ num_context,
461
+ img_context,
462
+ chatbot,
463
+ temp,
464
+ max_tokens,
465
+ hf_token,
466
+ model_path,
467
+ ],
468
  [chatbot, references, ret_images],
469
  )
470
+
471
  documents.change(lambda: "<h1 style='text-align: center'>Click the 'Extract' button to extract data from PDFs<h1>", None, prog)
472
 
473
  back_p1.click(lambda: gr.Tabs(selected=0), None, tabs)