Shreyas094 commited on
Commit
85df365
1 Parent(s): a6903fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -84,7 +84,7 @@ custom_models = fetch_custom_models()
84
  all_models = ["huggingface", "groq", "mistral"] + custom_models
85
 
86
  # Determine the default model
87
- default_model = CUSTOM_LLM_DEFAULT_MODEL if CUSTOM_LLM_DEFAULT_MODEL in all_models else "groq"
88
 
89
  logger.info(f"Default model selected: {default_model}")
90
 
@@ -1153,8 +1153,8 @@ iface = gr.ChatInterface(
1153
  gr.Checkbox(label="Only do web search", value=True), # Add this line
1154
  gr.Slider(5, 20, value=3, step=1, label="Number of initial results"),
1155
  gr.Slider(500, 10000, value=1500, step=100, label="Max characters to retrieve"),
1156
- gr.Dropdown(["", "day", "week", "month", "year"], value="week", label="Time Range"),
1157
- gr.Dropdown(["", "all", "en", "fr", "de", "es", "it", "nl", "pt", "pl", "ru", "zh"], value="en", label="Language"),
1158
  gr.Dropdown(["", "general", "news", "images", "videos", "music", "files", "it", "science", "social media"], value="general", label="Category"),
1159
  gr.Dropdown(
1160
  ["google", "bing", "duckduckgo", "baidu", "yahoo", "qwant", "startpage"],
@@ -1166,7 +1166,7 @@ iface = gr.ChatInterface(
1166
  gr.Radio(["GET", "POST"], value="GET", label="HTTP Method"),
1167
  gr.Slider(0, 1, value=0.2, step=0.1, label="LLM Temperature"),
1168
  gr.Dropdown(all_models, value=default_model, label="LLM Model"),
1169
- gr.Checkbox(label="Use PyPDF2 for PDF scraping", value=True),
1170
  ],
1171
  additional_inputs_accordion=gr.Accordion("⚙️ Advanced Parameters", open=True),
1172
  retry_btn="Retry",
 
84
  all_models = ["huggingface", "groq", "mistral"] + custom_models
85
 
86
  # Determine the default model
87
+ default_model = CUSTOM_LLM_DEFAULT_MODEL if CUSTOM_LLM_DEFAULT_MODEL in all_models else "huggingface"
88
 
89
  logger.info(f"Default model selected: {default_model}")
90
 
 
1153
  gr.Checkbox(label="Only do web search", value=True), # Add this line
1154
  gr.Slider(5, 20, value=3, step=1, label="Number of initial results"),
1155
  gr.Slider(500, 10000, value=1500, step=100, label="Max characters to retrieve"),
1156
+ gr.Dropdown(["", "day", "week", "month", "year"], value="", label="Time Range"),
1157
+ gr.Dropdown(["", "all", "en", "fr", "de", "es", "it", "nl", "pt", "pl", "ru", "zh"], value="", label="Language"),
1158
  gr.Dropdown(["", "general", "news", "images", "videos", "music", "files", "it", "science", "social media"], value="general", label="Category"),
1159
  gr.Dropdown(
1160
  ["google", "bing", "duckduckgo", "baidu", "yahoo", "qwant", "startpage"],
 
1166
  gr.Radio(["GET", "POST"], value="GET", label="HTTP Method"),
1167
  gr.Slider(0, 1, value=0.2, step=0.1, label="LLM Temperature"),
1168
  gr.Dropdown(all_models, value=default_model, label="LLM Model"),
1169
+ gr.Checkbox(label="Use PyPDF2 for PDF scraping", value=False),
1170
  ],
1171
  additional_inputs_accordion=gr.Accordion("⚙️ Advanced Parameters", open=True),
1172
  retry_btn="Retry",