akhaliq HF staff commited on
Commit
81d02d1
1 Parent(s): ca6e398

update model choices

Browse files
Files changed (1) hide show
  1. app.py +23 -10
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
- name='gpt-4-turbo',
20
- src=openai_gradio.registry,
21
- accept_token=True
22
  )
23
  with gr.Tab("Claude"):
 
 
 
 
 
 
24
  gr.load(
25
- name='claude-3-opus-20240229',
26
- src=anthropic_gradio.registry,
27
- accept_token=True
28
  )
29
  with gr.Tab("Meta Llama-3.2-90B-Vision-Instruct"):
30
  gr.load(
31
- name='Llama-3.2-90B-Vision-Instruct',
32
- src=sambanova_gradio.registry,
33
- accept_token=True,
34
- multimodal = True
 
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(