Shreyas094 commited on
Commit
4458e5c
1 Parent(s): 7646c7a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -86,7 +86,7 @@ custom_models = fetch_custom_models()
86
  all_models = ["huggingface", "groq", "mistral"] + custom_models
87
 
88
  # Determine the default model
89
- default_model = CUSTOM_LLM_DEFAULT_MODEL if CUSTOM_LLM_DEFAULT_MODEL in all_models else "groq"
90
 
91
  logger.info(f"Default model selected: {default_model}")
92
 
@@ -1218,7 +1218,7 @@ iface = gr.ChatInterface(
1218
  description="Ask Sentinel any question. It will search the web for recent information or use its knowledge base as appropriate.",
1219
  theme=gr.Theme.from_hub("allenai/gradio-theme"),
1220
  additional_inputs=[
1221
- gr.Checkbox(label="Only do web search", value=True), # Add this line
1222
  gr.Slider(5, 20, value=3, step=1, label="Number of initial results"),
1223
  gr.Slider(500, 10000, value=1500, step=100, label="Max characters to retrieve"),
1224
  gr.Dropdown(["", "day", "week", "month", "year"], value="week", label="Time Range"),
@@ -1231,7 +1231,7 @@ iface = gr.ChatInterface(
1231
  label="Engines"
1232
  ),
1233
  gr.Slider(0, 2, value=2, step=1, label="Safe Search Level"),
1234
- gr.Radio(["GET", "POST"], value="GET", label="HTTP Method"),
1235
  gr.Slider(0, 1, value=0.2, step=0.1, label="LLM Temperature"),
1236
  gr.Dropdown(all_models, value=default_model, label="LLM Model"),
1237
  gr.Checkbox(label="Use PyPDF2 for PDF scraping", value=True),
 
86
  all_models = ["huggingface", "groq", "mistral"] + custom_models
87
 
88
  # Determine the default model
89
+ default_model = CUSTOM_LLM_DEFAULT_MODEL if CUSTOM_LLM_DEFAULT_MODEL in all_models else "mistral"
90
 
91
  logger.info(f"Default model selected: {default_model}")
92
 
 
1218
  description="Ask Sentinel any question. It will search the web for recent information or use its knowledge base as appropriate.",
1219
  theme=gr.Theme.from_hub("allenai/gradio-theme"),
1220
  additional_inputs=[
1221
+ gr.Checkbox(label="Only do web search", value=False), # Add this line
1222
  gr.Slider(5, 20, value=3, step=1, label="Number of initial results"),
1223
  gr.Slider(500, 10000, value=1500, step=100, label="Max characters to retrieve"),
1224
  gr.Dropdown(["", "day", "week", "month", "year"], value="week", label="Time Range"),
 
1231
  label="Engines"
1232
  ),
1233
  gr.Slider(0, 2, value=2, step=1, label="Safe Search Level"),
1234
+ gr.Radio(["GET", "POST"], value="POST", label="HTTP Method"),
1235
  gr.Slider(0, 1, value=0.2, step=0.1, label="LLM Temperature"),
1236
  gr.Dropdown(all_models, value=default_model, label="LLM Model"),
1237
  gr.Checkbox(label="Use PyPDF2 for PDF scraping", value=True),