Spaces:
Runtime error
Runtime error
update model list
Browse files
app.py
CHANGED
@@ -17,8 +17,26 @@ with gr.Blocks(fill_height=True) as demo:
|
|
17 |
with gr.Tab("ChatGPT"):
|
18 |
with gr.Row():
|
19 |
model_choice = gr.Dropdown(
|
20 |
-
choices=[
|
21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
label="Select Model",
|
23 |
interactive=True
|
24 |
)
|
@@ -44,8 +62,14 @@ with gr.Blocks(fill_height=True) as demo:
|
|
44 |
with gr.Tab("Claude"):
|
45 |
with gr.Row():
|
46 |
claude_model = gr.Dropdown(
|
47 |
-
choices=[
|
48 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
label="Select Model",
|
50 |
interactive=True
|
51 |
)
|
|
|
17 |
with gr.Tab("ChatGPT"):
|
18 |
with gr.Row():
|
19 |
model_choice = gr.Dropdown(
|
20 |
+
choices=[
|
21 |
+
'gpt-4o', # Most advanced model
|
22 |
+
'gpt-4o-2024-08-06', # Latest snapshot
|
23 |
+
'gpt-4o-2024-05-13', # Original snapshot
|
24 |
+
'chatgpt-4o-latest', # Latest ChatGPT version
|
25 |
+
'gpt-4o-mini', # Small model
|
26 |
+
'gpt-4o-mini-2024-07-18', # Latest mini version
|
27 |
+
'o1-preview', # Reasoning model
|
28 |
+
'o1-preview-2024-09-12', # Latest o1 model snapshot
|
29 |
+
'o1-mini', # Faster reasoning model
|
30 |
+
'o1-mini-2024-09-12', # Latest o1-mini model snapshot
|
31 |
+
'gpt-4-turbo', # Latest GPT-4 Turbo model
|
32 |
+
'gpt-4-turbo-2024-04-09', # Latest GPT-4 Turbo snapshot
|
33 |
+
'gpt-4-turbo-preview', # GPT-4 Turbo preview model
|
34 |
+
'gpt-4-0125-preview', # GPT-4 Turbo preview model for laziness
|
35 |
+
'gpt-4-1106-preview', # Improved instruction following model
|
36 |
+
'gpt-4', # Standard GPT-4 model
|
37 |
+
'gpt-4-0613' # Snapshot of GPT-4 from June 2023
|
38 |
+
],
|
39 |
+
value='gpt-4o', # Default to the most advanced model
|
40 |
label="Select Model",
|
41 |
interactive=True
|
42 |
)
|
|
|
62 |
with gr.Tab("Claude"):
|
63 |
with gr.Row():
|
64 |
claude_model = gr.Dropdown(
|
65 |
+
choices=[
|
66 |
+
'claude-3-5-sonnet-20241022', # Latest Sonnet
|
67 |
+
'claude-3-5-haiku-20241022', # Latest Haiku
|
68 |
+
'claude-3-opus-20240229', # Opus
|
69 |
+
'claude-3-sonnet-20240229', # Previous Sonnet
|
70 |
+
'claude-3-haiku-20240307' # Previous Haiku
|
71 |
+
],
|
72 |
+
value='claude-3-5-sonnet-20241022', # Default to latest Sonnet
|
73 |
label="Select Model",
|
74 |
interactive=True
|
75 |
)
|