akhaliq HF staff commited on
Commit
16d456d
1 Parent(s): c0fd5ba

add sambanova qwen

Browse files
Files changed (2) hide show
  1. app.py +4 -0
  2. app_sambanova_qwen.py +21 -0
app.py CHANGED
@@ -15,6 +15,7 @@ from app_sambanova import demo as demo_sambanova
15
  from app_together import demo as demo_together
16
  from app_xai import demo as demo_grok
17
  from app_flux import demo as demo_flux
 
18
 
19
  with gr.Blocks(fill_height=True) as demo:
20
  with gr.Tab("Meta Llama"):
@@ -28,6 +29,8 @@ with gr.Blocks(fill_height=True) as demo:
28
  demo_openai.render()
29
  with gr.Tab("Claude"):
30
  demo_claude.render()
 
 
31
  with gr.Tab("Grok"):
32
  demo_grok.render()
33
  with gr.Tab("Hugging Face"):
@@ -51,5 +54,6 @@ with gr.Blocks(fill_height=True) as demo:
51
  with gr.Tab("Flux"):
52
  demo_flux.render()
53
 
 
54
  if __name__ == "__main__":
55
  demo.queue(api_open=False).launch(ssr_mode=False, show_api=False)
 
15
  from app_together import demo as demo_together
16
  from app_xai import demo as demo_grok
17
  from app_flux import demo as demo_flux
18
+ from app_sambanova_qwen import demo as demo_sambanova_qwen
19
 
20
  with gr.Blocks(fill_height=True) as demo:
21
  with gr.Tab("Meta Llama"):
 
29
  demo_openai.render()
30
  with gr.Tab("Claude"):
31
  demo_claude.render()
32
+ with gr.Tab("SambaNova Qwen"):
33
+ demo_sambanova_qwen.render()
34
  with gr.Tab("Grok"):
35
  demo_grok.render()
36
  with gr.Tab("Hugging Face"):
 
54
  with gr.Tab("Flux"):
55
  demo_flux.render()
56
 
57
+
58
  if __name__ == "__main__":
59
  demo.queue(api_open=False).launch(ssr_mode=False, show_api=False)
app_sambanova_qwen.py ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+
3
+ import sambanova_gradio
4
+
5
+ from utils import get_app
6
+
7
+ demo = get_app(
8
+ models=[
9
+ "Qwen2.5-Coder-0.5B-Instruct",
10
+ "Qwen2.5-0.5B-Instruct",
11
+ "Qwen2.5-Coder-32B-Instruct",
12
+ "Qwen2.5-72B-Instruct",
13
+ ],
14
+ default_model="Qwen2.5-Coder-32B-Instruct",
15
+ src=sambanova_gradio.registry,
16
+ accept_token=not os.getenv("SAMBANOVA_API_KEY"),
17
+ multimodal=True,
18
+ )
19
+
20
+ if __name__ == "__main__":
21
+ demo.launch()