Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -149,6 +149,14 @@ seed_slider = gr.Slider(
|
|
| 149 |
label="Seed (-1 for random)"
|
| 150 |
)
|
| 151 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 152 |
# Provider selection
|
| 153 |
providers_list = [
|
| 154 |
"hf-inference", # Default Hugging Face Inference
|
|
@@ -173,14 +181,6 @@ provider_radio = gr.Radio(
|
|
| 173 |
info="Select which inference provider to use. Uses your Hugging Face PRO credits."
|
| 174 |
)
|
| 175 |
|
| 176 |
-
# Custom model box
|
| 177 |
-
custom_model_box = gr.Textbox(
|
| 178 |
-
value="",
|
| 179 |
-
label="Custom Model",
|
| 180 |
-
info="(Optional) Provide a custom Hugging Face model path. Overrides any selected featured model.",
|
| 181 |
-
placeholder="meta-llama/Llama-3.3-70B-Instruct"
|
| 182 |
-
)
|
| 183 |
-
|
| 184 |
# Model selection components
|
| 185 |
model_search_box = gr.Textbox(
|
| 186 |
label="Filter Models",
|
|
@@ -250,8 +250,8 @@ demo = gr.ChatInterface(
|
|
| 250 |
top_p_slider,
|
| 251 |
frequency_penalty_slider,
|
| 252 |
seed_slider,
|
| 253 |
-
provider_radio, # Provider selection
|
| 254 |
custom_model_box,
|
|
|
|
| 255 |
model_search_box, # Model search box
|
| 256 |
featured_model_radio # Featured model radio
|
| 257 |
],
|
|
|
|
| 149 |
label="Seed (-1 for random)"
|
| 150 |
)
|
| 151 |
|
| 152 |
+
# Custom model box
|
| 153 |
+
custom_model_box = gr.Textbox(
|
| 154 |
+
value="",
|
| 155 |
+
label="Custom Model",
|
| 156 |
+
info="(Optional) Provide a custom Hugging Face model path. Overrides any selected featured model.",
|
| 157 |
+
placeholder="meta-llama/Llama-3.3-70B-Instruct"
|
| 158 |
+
)
|
| 159 |
+
|
| 160 |
# Provider selection
|
| 161 |
providers_list = [
|
| 162 |
"hf-inference", # Default Hugging Face Inference
|
|
|
|
| 181 |
info="Select which inference provider to use. Uses your Hugging Face PRO credits."
|
| 182 |
)
|
| 183 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 184 |
# Model selection components
|
| 185 |
model_search_box = gr.Textbox(
|
| 186 |
label="Filter Models",
|
|
|
|
| 250 |
top_p_slider,
|
| 251 |
frequency_penalty_slider,
|
| 252 |
seed_slider,
|
|
|
|
| 253 |
custom_model_box,
|
| 254 |
+
provider_radio, # Provider selection
|
| 255 |
model_search_box, # Model search box
|
| 256 |
featured_model_radio # Featured model radio
|
| 257 |
],
|