Spaces:
Running
Running
fix code
Browse files
app.py
CHANGED
|
@@ -35,24 +35,24 @@ import gradio as gr
|
|
| 35 |
# Create mapping of providers to their code snippets
|
| 36 |
PROVIDER_SNIPPETS = {
|
| 37 |
"OpenAI Coder": """import gradio as gr
|
| 38 |
-
|
|
|
|
| 39 |
name='openai:o3-mini-2025-01-31',
|
| 40 |
src=ai_gradio.registry,
|
| 41 |
coder=True
|
| 42 |
).launch()""",
|
| 43 |
"Gemini Coder": """import gradio as gr
|
|
|
|
| 44 |
gr.load(
|
| 45 |
name='gemini:gemini-1.5-flash',
|
| 46 |
src=ai_gradio.registry,
|
| 47 |
-
|
| 48 |
-
description='Chat with Gemini 1.5'
|
| 49 |
).launch()""",
|
| 50 |
"Hyperbolic": """import gradio as gr
|
|
|
|
| 51 |
gr.load(
|
| 52 |
name='hyperbolic:deepseek-ai/DeepSeek-R1',
|
| 53 |
src=ai_gradio.registry,
|
| 54 |
-
title='DeepSeek-R1',
|
| 55 |
-
description='Chat with DeepSeek-R1'
|
| 56 |
).launch()""",
|
| 57 |
# Add similar snippets for other providers
|
| 58 |
}
|
|
|
|
| 35 |
# Create mapping of providers to their code snippets
|
| 36 |
PROVIDER_SNIPPETS = {
|
| 37 |
"OpenAI Coder": """import gradio as gr
|
| 38 |
+
import ai_gradio
|
| 39 |
+
gr.load(
|
| 40 |
name='openai:o3-mini-2025-01-31',
|
| 41 |
src=ai_gradio.registry,
|
| 42 |
coder=True
|
| 43 |
).launch()""",
|
| 44 |
"Gemini Coder": """import gradio as gr
|
| 45 |
+
import ai_gradio
|
| 46 |
gr.load(
|
| 47 |
name='gemini:gemini-1.5-flash',
|
| 48 |
src=ai_gradio.registry,
|
| 49 |
+
coder=True
|
|
|
|
| 50 |
).launch()""",
|
| 51 |
"Hyperbolic": """import gradio as gr
|
| 52 |
+
import ai_gradio
|
| 53 |
gr.load(
|
| 54 |
name='hyperbolic:deepseek-ai/DeepSeek-R1',
|
| 55 |
src=ai_gradio.registry,
|
|
|
|
|
|
|
| 56 |
).launch()""",
|
| 57 |
# Add similar snippets for other providers
|
| 58 |
}
|