Spaces:
Runtime error
Runtime error
add cohere
Browse files- app.py +6 -2
- app_cohere.py +21 -0
- requirements.txt +2 -0
app.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
import gradio as gr
|
2 |
|
|
|
3 |
from app_meta import demo as demo_meta
|
4 |
from app_lumaai import demo as demo_lumaai
|
5 |
from app_paligemma import demo as demo_paligemma
|
@@ -30,10 +31,13 @@ from app_omini import demo as demo_omini
|
|
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
|
|
|
|
|
|
|
37 |
with gr.Tab("SambaNova (New Meta-Llama-3.3-70B-Instruct)"):
|
38 |
demo_sambanova.render()
|
39 |
gr.Markdown(
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
from app_cohere import demo as demo_cohere
|
4 |
from app_meta import demo as demo_meta
|
5 |
from app_lumaai import demo as demo_lumaai
|
6 |
from app_paligemma import demo as demo_paligemma
|
|
|
31 |
with gr.Blocks(fill_height=True) as demo:
|
32 |
with gr.Tab("Grok"):
|
33 |
demo_grok.render()
|
34 |
+
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>")
|
35 |
with gr.Tab("Gemini"):
|
36 |
demo_gemini.render()
|
37 |
+
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>")
|
38 |
+
with gr.Tab("Cohere"):
|
39 |
+
demo_cohere.render()
|
40 |
+
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>")
|
41 |
with gr.Tab("SambaNova (New Meta-Llama-3.3-70B-Instruct)"):
|
42 |
demo_sambanova.render()
|
43 |
gr.Markdown(
|
app_cohere.py
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
|
3 |
+
import cohere_gradio
|
4 |
+
|
5 |
+
from utils import get_app
|
6 |
+
|
7 |
+
demo = get_app(
|
8 |
+
models=[
|
9 |
+
"command-r",
|
10 |
+
"command-r-08-2024",
|
11 |
+
"command-r-plus",
|
12 |
+
"command-r-plus-08-2024",
|
13 |
+
"command-r7b-12-2024",
|
14 |
+
],
|
15 |
+
default_model="command-r7b-12-2024",
|
16 |
+
src=cohere_gradio.registry,
|
17 |
+
accept_token=not os.getenv("COHERE_API_KEY"),
|
18 |
+
)
|
19 |
+
|
20 |
+
if __name__ == "__main__":
|
21 |
+
demo.launch()
|
requirements.txt
CHANGED
@@ -398,3 +398,5 @@ xai-gradio==0.0.2
|
|
398 |
playai-gradio @ git+https://github.com/AK391/playai-gradio.git
|
399 |
|
400 |
lumaai-gradio @ git+https://github.com/AK391/lumaai-gradio.git
|
|
|
|
|
|
398 |
playai-gradio @ git+https://github.com/AK391/playai-gradio.git
|
399 |
|
400 |
lumaai-gradio @ git+https://github.com/AK391/lumaai-gradio.git
|
401 |
+
|
402 |
+
cohere-gradio @ git+https://github.com/AK391/cohere-gradio.git
|