Shreyas094
commited on
Commit
•
05d00f6
1
Parent(s):
41afb33
Update app.py
Browse files
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 "
|
88 |
|
89 |
logger.info(f"Default model selected: {default_model}")
|
90 |
|
@@ -1011,8 +1011,8 @@ iface = gr.ChatInterface(
|
|
1011 |
gr.Checkbox(label="Only do web search", value=True), # Add this line
|
1012 |
gr.Slider(5, 20, value=3, step=1, label="Number of initial results"),
|
1013 |
gr.Slider(500, 10000, value=1500, step=100, label="Max characters to retrieve"),
|
1014 |
-
gr.Dropdown(["", "day", "week", "month", "year"], value="
|
1015 |
-
gr.Dropdown(["", "all", "en", "fr", "de", "es", "it", "nl", "pt", "pl", "ru", "zh"], value="
|
1016 |
gr.Dropdown(["", "general", "news", "images", "videos", "music", "files", "it", "science", "social media"], value="general", label="Category"),
|
1017 |
gr.Dropdown(
|
1018 |
["google", "bing", "duckduckgo", "baidu", "yahoo", "qwant", "startpage"],
|
|
|
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 |
|
|
|
1011 |
gr.Checkbox(label="Only do web search", value=True), # Add this line
|
1012 |
gr.Slider(5, 20, value=3, step=1, label="Number of initial results"),
|
1013 |
gr.Slider(500, 10000, value=1500, step=100, label="Max characters to retrieve"),
|
1014 |
+
gr.Dropdown(["", "day", "week", "month", "year"], value="", label="Time Range"),
|
1015 |
+
gr.Dropdown(["", "all", "en", "fr", "de", "es", "it", "nl", "pt", "pl", "ru", "zh"], value="", label="Language"),
|
1016 |
gr.Dropdown(["", "general", "news", "images", "videos", "music", "files", "it", "science", "social media"], value="general", label="Category"),
|
1017 |
gr.Dropdown(
|
1018 |
["google", "bing", "duckduckgo", "baidu", "yahoo", "qwant", "startpage"],
|