Spaces:
Runtime error
Runtime error
add new gemini model
Browse files- app.py +3 -3
- app_gemini.py +2 -1
app.py
CHANGED
|
@@ -28,6 +28,9 @@ from app_showui import demo as demo_showui
|
|
| 28 |
from app_omini import demo as demo_omini
|
| 29 |
|
| 30 |
with gr.Blocks(fill_height=True) as demo:
|
|
|
|
|
|
|
|
|
|
| 31 |
with gr.Tab("Hyperbolic (New Meta Llama 3.3 70B)"):
|
| 32 |
demo_hyperbolic.render()
|
| 33 |
gr.Markdown(
|
|
@@ -86,9 +89,6 @@ with gr.Blocks(fill_height=True) as demo:
|
|
| 86 |
with gr.Tab("Grok"):
|
| 87 |
demo_grok.render()
|
| 88 |
gr.Markdown("This app is built with gradio, check out gradio github and star: <a href='https://github.com/gradio-app/gradio'>Gradio <img src='https://img.shields.io/github/stars/gradio-app/gradio'></a>.")
|
| 89 |
-
with gr.Tab("Gemini"):
|
| 90 |
-
demo_gemini.render()
|
| 91 |
-
gr.Markdown("This app is built with gradio, check out gradio github and star: <a href='https://github.com/gradio-app/gradio'>Gradio <img src='https://img.shields.io/github/stars/gradio-app/gradio'></a>.")
|
| 92 |
with gr.Tab("ChatGPT"):
|
| 93 |
demo_openai.render()
|
| 94 |
gr.Markdown("This app is built with gradio, check out gradio github and star: <a href='https://github.com/gradio-app/gradio'>Gradio <img src='https://img.shields.io/github/stars/gradio-app/gradio'></a>.")
|
|
|
|
| 28 |
from app_omini import demo as demo_omini
|
| 29 |
|
| 30 |
with gr.Blocks(fill_height=True) as demo:
|
| 31 |
+
with gr.Tab("Gemini"):
|
| 32 |
+
demo_gemini.render()
|
| 33 |
+
gr.Markdown("This app is built with gradio, check out gradio github and star: <a href='https://github.com/gradio-app/gradio'>Gradio <img src='https://img.shields.io/github/stars/gradio-app/gradio'></a>.")
|
| 34 |
with gr.Tab("Hyperbolic (New Meta Llama 3.3 70B)"):
|
| 35 |
demo_hyperbolic.render()
|
| 36 |
gr.Markdown(
|
|
|
|
| 89 |
with gr.Tab("Grok"):
|
| 90 |
demo_grok.render()
|
| 91 |
gr.Markdown("This app is built with gradio, check out gradio github and star: <a href='https://github.com/gradio-app/gradio'>Gradio <img src='https://img.shields.io/github/stars/gradio-app/gradio'></a>.")
|
|
|
|
|
|
|
|
|
|
| 92 |
with gr.Tab("ChatGPT"):
|
| 93 |
demo_openai.render()
|
| 94 |
gr.Markdown("This app is built with gradio, check out gradio github and star: <a href='https://github.com/gradio-app/gradio'>Gradio <img src='https://img.shields.io/github/stars/gradio-app/gradio'></a>.")
|
app_gemini.py
CHANGED
|
@@ -11,8 +11,9 @@ demo = get_app(
|
|
| 11 |
"gemini-1.5-pro",
|
| 12 |
"gemini-exp-1114",
|
| 13 |
"gemini-exp-1121",
|
|
|
|
| 14 |
],
|
| 15 |
-
default_model="gemini-
|
| 16 |
src=gemini_gradio.registry,
|
| 17 |
accept_token=not os.getenv("GEMINI_API_KEY"),
|
| 18 |
)
|
|
|
|
| 11 |
"gemini-1.5-pro",
|
| 12 |
"gemini-exp-1114",
|
| 13 |
"gemini-exp-1121",
|
| 14 |
+
"gemini-exp-1206",
|
| 15 |
],
|
| 16 |
+
default_model="gemini-exp-1206",
|
| 17 |
src=gemini_gradio.registry,
|
| 18 |
accept_token=not os.getenv("GEMINI_API_KEY"),
|
| 19 |
)
|