Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -126,7 +126,7 @@ custom_model_box = gr.Textbox(
|
|
| 126 |
value="",
|
| 127 |
label="Custom Model",
|
| 128 |
info="(Optional) Provide a custom Hugging Face model path. Overrides any selected featured model.",
|
| 129 |
-
placeholder="
|
| 130 |
)
|
| 131 |
|
| 132 |
def set_custom_model_from_radio(selected):
|
|
@@ -164,31 +164,22 @@ with demo:
|
|
| 164 |
print("Model search box created.")
|
| 165 |
|
| 166 |
models_list = [
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
"meta-llama/Llama-3.0-70B-Instruct",
|
| 170 |
-
"meta-llama/Llama-3.2-3B-Instruct",
|
| 171 |
-
"meta-llama/Llama-3.2-1B-Instruct",
|
| 172 |
"meta-llama/Llama-3.1-8B-Instruct",
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
"mistralai/Mistral-Nemo-Instruct-2407",
|
| 176 |
-
"mistralai/Mixtral-8x7B-Instruct-v0.1",
|
| 177 |
"mistralai/Mistral-7B-Instruct-v0.3",
|
| 178 |
-
|
| 179 |
"Qwen/Qwen2.5-72B-Instruct",
|
| 180 |
-
|
| 181 |
-
"Qwen/Qwen2.5-0.5B-Instruct",
|
| 182 |
-
"Qwen/QwQ-32B-Preview",
|
| 183 |
"Qwen/Qwen2.5-Coder-32B-Instruct",
|
| 184 |
"microsoft/Phi-3.5-mini-instruct",
|
| 185 |
-
|
| 186 |
-
"microsoft/Phi-3-mini-4k-instruct",
|
| 187 |
"deepseek-ai/DeepSeek-R1-Distill-Qwen-32B",
|
| 188 |
-
|
| 189 |
"HuggingFaceH4/zephyr-7b-beta",
|
| 190 |
-
|
| 191 |
-
"tiiuae/falcon-7b-instruct",
|
| 192 |
"01-ai/Yi-1.5-34B-Chat",
|
| 193 |
]
|
| 194 |
print("Models list initialized.")
|
|
@@ -196,7 +187,7 @@ with demo:
|
|
| 196 |
featured_model_radio = gr.Radio(
|
| 197 |
label="Select a model below",
|
| 198 |
choices=models_list,
|
| 199 |
-
value="meta-llama/Llama-3.
|
| 200 |
interactive=True
|
| 201 |
)
|
| 202 |
print("Featured models radio button created.")
|
|
|
|
| 126 |
value="",
|
| 127 |
label="Custom Model",
|
| 128 |
info="(Optional) Provide a custom Hugging Face model path. Overrides any selected featured model.",
|
| 129 |
+
placeholder="deepseek-ai/DeepSeek-R1-Distill-Qwen-32B"
|
| 130 |
)
|
| 131 |
|
| 132 |
def set_custom_model_from_radio(selected):
|
|
|
|
| 164 |
print("Model search box created.")
|
| 165 |
|
| 166 |
models_list = [
|
| 167 |
+
|
| 168 |
+
|
|
|
|
|
|
|
|
|
|
| 169 |
"meta-llama/Llama-3.1-8B-Instruct",
|
| 170 |
+
|
| 171 |
+
|
|
|
|
|
|
|
| 172 |
"mistralai/Mistral-7B-Instruct-v0.3",
|
| 173 |
+
|
| 174 |
"Qwen/Qwen2.5-72B-Instruct",
|
| 175 |
+
|
|
|
|
|
|
|
| 176 |
"Qwen/Qwen2.5-Coder-32B-Instruct",
|
| 177 |
"microsoft/Phi-3.5-mini-instruct",
|
| 178 |
+
|
|
|
|
| 179 |
"deepseek-ai/DeepSeek-R1-Distill-Qwen-32B",
|
| 180 |
+
|
| 181 |
"HuggingFaceH4/zephyr-7b-beta",
|
| 182 |
+
|
|
|
|
| 183 |
"01-ai/Yi-1.5-34B-Chat",
|
| 184 |
]
|
| 185 |
print("Models list initialized.")
|
|
|
|
| 187 |
featured_model_radio = gr.Radio(
|
| 188 |
label="Select a model below",
|
| 189 |
choices=models_list,
|
| 190 |
+
value="meta-llama/Llama-3.1-8B-Instruct",
|
| 191 |
interactive=True
|
| 192 |
)
|
| 193 |
print("Featured models radio button created.")
|