update model choices
Browse files
app.py
CHANGED
@@ -15,23 +15,36 @@ with gr.Blocks(fill_height=True) as demo:
|
|
15 |
accept_token=True
|
16 |
)
|
17 |
with gr.Tab("ChatGPT"):
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
gr.load(
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
)
|
23 |
with gr.Tab("Claude"):
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
gr.load(
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
)
|
29 |
with gr.Tab("Meta Llama-3.2-90B-Vision-Instruct"):
|
30 |
gr.load(
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
|
|
35 |
)
|
36 |
with gr.Tab("Grok"):
|
37 |
gr.load(
|
|
|
15 |
accept_token=True
|
16 |
)
|
17 |
with gr.Tab("ChatGPT"):
|
18 |
+
with gr.Row():
|
19 |
+
model_choice = gr.Dropdown(
|
20 |
+
choices=['gpt-4-turbo', 'gpt-4', 'gpt-3.5-turbo'],
|
21 |
+
value='gpt-4-turbo',
|
22 |
+
label="Select Model"
|
23 |
+
)
|
24 |
gr.load(
|
25 |
+
name=model_choice.value,
|
26 |
+
src=openai_gradio.registry,
|
27 |
+
accept_token=True
|
28 |
)
|
29 |
with gr.Tab("Claude"):
|
30 |
+
with gr.Row():
|
31 |
+
claude_model = gr.Dropdown(
|
32 |
+
choices=['claude-3-sonnet-20240229', 'claude-3-opus-20240229'],
|
33 |
+
value='claude-3-sonnet-20240229',
|
34 |
+
label="Select Model"
|
35 |
+
)
|
36 |
gr.load(
|
37 |
+
name=claude_model.value,
|
38 |
+
src=anthropic_gradio.registry,
|
39 |
+
accept_token=True
|
40 |
)
|
41 |
with gr.Tab("Meta Llama-3.2-90B-Vision-Instruct"):
|
42 |
gr.load(
|
43 |
+
name='Llama-3.2-90B-Vision-Instruct',
|
44 |
+
src=sambanova_gradio.registry,
|
45 |
+
accept_token=True,
|
46 |
+
multimodal=True,
|
47 |
+
description="Requires SambaNova API key"
|
48 |
)
|
49 |
with gr.Tab("Grok"):
|
50 |
gr.load(
|