Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -511,15 +511,20 @@ with gr.Blocks(css="""
|
|
| 511 |
)
|
| 512 |
|
| 513 |
with gr.Column(visible=False) as hf_options:
|
| 514 |
-
|
| 515 |
-
|
| 516 |
-
|
| 517 |
-
|
| 518 |
-
|
| 519 |
-
|
| 520 |
-
|
| 521 |
-
|
| 522 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 523 |
|
| 524 |
with gr.Column(visible=False) as groq_options:
|
| 525 |
groq_model = gr.Dropdown(
|
|
|
|
| 511 |
)
|
| 512 |
|
| 513 |
with gr.Column(visible=False) as hf_options:
|
| 514 |
+
hf_model = gr.Dropdown(
|
| 515 |
+
choices=list(model_registry.hf_models.keys()),
|
| 516 |
+
label="π§ HuggingFace Model",
|
| 517 |
+
value="Phi-3 Mini 4K"
|
| 518 |
+
)
|
| 519 |
+
hf_custom_model = gr.Textbox( # This needs to be defined before being used
|
| 520 |
+
label="Custom Model ID",
|
| 521 |
+
placeholder="Enter custom model ID...",
|
| 522 |
+
visible=False
|
| 523 |
+
)
|
| 524 |
+
hf_api_key = gr.Textbox(
|
| 525 |
+
label="π HuggingFace API Key",
|
| 526 |
+
type="password"
|
| 527 |
+
)
|
| 528 |
|
| 529 |
with gr.Column(visible=False) as groq_options:
|
| 530 |
groq_model = gr.Dropdown(
|