Shreyas094 commited on
Commit
e2e8b23
·
verified ·
1 Parent(s): 5a988b9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -238,6 +238,9 @@ css = """
238
  /* Add your custom CSS here */
239
  """
240
 
 
 
 
241
  demo = gr.ChatInterface(
242
  respond,
243
  additional_inputs=[
@@ -281,9 +284,6 @@ demo = gr.ChatInterface(
281
  with demo:
282
  gr.Markdown("## Upload PDF Documents")
283
 
284
- #Add the checkbox here
285
- use_web_search = gr.Checkbox(label="Use Web Search", value=False)
286
-
287
  with gr.Row():
288
  file_input = gr.Files(label="Upload your PDF documents", file_types=[".pdf"])
289
  parser_dropdown = gr.Dropdown(choices=["pypdf", "llamaparse"], label="Select PDF Parser", value="llamaparse")
 
238
  /* Add your custom CSS here */
239
  """
240
 
241
+ # Define the checkbox outside the demo block
242
+ use_web_search = gr.Checkbox(label="Use Web Search", value=False)
243
+
244
  demo = gr.ChatInterface(
245
  respond,
246
  additional_inputs=[
 
284
  with demo:
285
  gr.Markdown("## Upload PDF Documents")
286
 
 
 
 
287
  with gr.Row():
288
  file_input = gr.Files(label="Upload your PDF documents", file_types=[".pdf"])
289
  parser_dropdown = gr.Dropdown(choices=["pypdf", "llamaparse"], label="Select PDF Parser", value="llamaparse")