new grok model
Browse files- app.py +3 -3
- app_xai.py +3 -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("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>.")
|
|
@@ -95,9 +98,6 @@ with gr.Blocks(fill_height=True) as demo:
|
|
| 95 |
with gr.Tab("PlayAI"):
|
| 96 |
demo_playai.render()
|
| 97 |
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>.")
|
| 98 |
-
with gr.Tab("Grok"):
|
| 99 |
-
demo_grok.render()
|
| 100 |
-
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>.")
|
| 101 |
with gr.Tab("ChatGPT"):
|
| 102 |
demo_openai.render()
|
| 103 |
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("Grok"):
|
| 32 |
+
demo_grok.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("Gemini"):
|
| 35 |
demo_gemini.render()
|
| 36 |
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>.")
|
|
|
|
| 98 |
with gr.Tab("PlayAI"):
|
| 99 |
demo_playai.render()
|
| 100 |
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>.")
|
|
|
|
|
|
|
|
|
|
| 101 |
with gr.Tab("ChatGPT"):
|
| 102 |
demo_openai.render()
|
| 103 |
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_xai.py
CHANGED
|
@@ -8,8 +8,10 @@ demo = get_app(
|
|
| 8 |
models=[
|
| 9 |
"grok-beta",
|
| 10 |
"grok-vision-beta",
|
|
|
|
|
|
|
| 11 |
],
|
| 12 |
-
default_model="grok-vision-
|
| 13 |
src=xai_gradio.registry,
|
| 14 |
accept_token=not os.getenv("XAI_API_KEY"),
|
| 15 |
)
|
|
|
|
| 8 |
models=[
|
| 9 |
"grok-beta",
|
| 10 |
"grok-vision-beta",
|
| 11 |
+
"grok-2-vision-1212",
|
| 12 |
+
"grok-2-1212",
|
| 13 |
],
|
| 14 |
+
default_model="grok-2-vision-1212",
|
| 15 |
src=xai_gradio.registry,
|
| 16 |
accept_token=not os.getenv("XAI_API_KEY"),
|
| 17 |
)
|