Shreyas094 commited on
Commit
f9e7dcc
·
verified ·
1 Parent(s): 8673e05

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -646,7 +646,7 @@ def refresh_documents():
646
  # Define the checkbox outside the demo block
647
  document_selector = gr.CheckboxGroup(label="Select documents to query")
648
 
649
- use_web_search = gr.Checkbox(label="Use Web Search", value=True)
650
 
651
  custom_placeholder = "Ask a question (Note: You can toggle between Web Search and PDF Chat in Additional Inputs below)"
652
 
@@ -659,8 +659,8 @@ demo = gr.ChatInterface(
659
  gr.Dropdown(choices=MODELS, label="Select Model", value=MODELS[3]),
660
  gr.Slider(minimum=0.1, maximum=1.0, value=0.2, step=0.1, label="Temperature"),
661
  gr.Slider(minimum=1, maximum=5, value=1, step=1, label="Number of API Calls"),
662
- gr.Checkbox(label="Use Web Search", value=True),
663
- gr.CheckboxGroup(label="Select documents to query", choices=[])
664
  ],
665
  title="AI-powered PDF Chat and Web Search Assistant",
666
  description="Chat with your PDFs or use web search to answer questions.",
 
646
  # Define the checkbox outside the demo block
647
  document_selector = gr.CheckboxGroup(label="Select documents to query")
648
 
649
+ use_web_search = gr.Checkbox(label="Use Web Search", value=False)
650
 
651
  custom_placeholder = "Ask a question (Note: You can toggle between Web Search and PDF Chat in Additional Inputs below)"
652
 
 
659
  gr.Dropdown(choices=MODELS, label="Select Model", value=MODELS[3]),
660
  gr.Slider(minimum=0.1, maximum=1.0, value=0.2, step=0.1, label="Temperature"),
661
  gr.Slider(minimum=1, maximum=5, value=1, step=1, label="Number of API Calls"),
662
+ gr.CheckboxGroup(label="Select documents to query", choices=[]),
663
+ gr.Checkbox(label="Use Web Search", value=True)
664
  ],
665
  title="AI-powered PDF Chat and Web Search Assistant",
666
  description="Chat with your PDFs or use web search to answer questions.",