Spaces:
Running
Running
update label
Browse files
app.py
CHANGED
|
@@ -36,10 +36,10 @@ import gradio as gr
|
|
| 36 |
PROVIDER_SNIPPETS = {
|
| 37 |
"OpenAI Coder": """import gradio as gr
|
| 38 |
gr.load(
|
| 39 |
-
name='openai:gpt-
|
| 40 |
src=ai_gradio.registry,
|
| 41 |
title='AI Chat',
|
| 42 |
-
description='Chat with OpenAI GPT-
|
| 43 |
).launch()""",
|
| 44 |
"Gemini Coder": """import gradio as gr
|
| 45 |
gr.load(
|
|
@@ -47,6 +47,13 @@ gr.load(
|
|
| 47 |
src=ai_gradio.registry,
|
| 48 |
title='AI Chat',
|
| 49 |
description='Chat with Gemini 1.5'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
).launch()""",
|
| 51 |
# Add similar snippets for other providers
|
| 52 |
}
|
|
@@ -102,7 +109,7 @@ with demo:
|
|
| 102 |
provider_dropdown = gr.Dropdown(
|
| 103 |
choices=list(PROVIDERS.keys()),
|
| 104 |
value="OpenAI Coder",
|
| 105 |
-
label="Select
|
| 106 |
)
|
| 107 |
provider_dropdown.change(
|
| 108 |
fn=update_code,
|
|
|
|
| 36 |
PROVIDER_SNIPPETS = {
|
| 37 |
"OpenAI Coder": """import gradio as gr
|
| 38 |
gr.load(
|
| 39 |
+
name='openai:gpt-4o',
|
| 40 |
src=ai_gradio.registry,
|
| 41 |
title='AI Chat',
|
| 42 |
+
description='Chat with OpenAI GPT-4o'
|
| 43 |
).launch()""",
|
| 44 |
"Gemini Coder": """import gradio as gr
|
| 45 |
gr.load(
|
|
|
|
| 47 |
src=ai_gradio.registry,
|
| 48 |
title='AI Chat',
|
| 49 |
description='Chat with Gemini 1.5'
|
| 50 |
+
).launch()""",
|
| 51 |
+
"Hyperbolic": """import gradio as gr
|
| 52 |
+
gr.load(
|
| 53 |
+
name='hyperbolic:deepseek-ai/DeepSeek-R1',
|
| 54 |
+
src=ai_gradio.registry,
|
| 55 |
+
title='DeepSeek-R1',
|
| 56 |
+
description='Chat with DeepSeek-R1'
|
| 57 |
).launch()""",
|
| 58 |
# Add similar snippets for other providers
|
| 59 |
}
|
|
|
|
| 109 |
provider_dropdown = gr.Dropdown(
|
| 110 |
choices=list(PROVIDERS.keys()),
|
| 111 |
value="OpenAI Coder",
|
| 112 |
+
label="Select code snippet"
|
| 113 |
)
|
| 114 |
provider_dropdown.change(
|
| 115 |
fn=update_code,
|