akhaliq HF staff commited on
Commit
b767358
·
1 Parent(s): 04ce89c
Files changed (2) hide show
  1. app.py +25 -10
  2. requirements.txt +1 -0
app.py CHANGED
@@ -12,6 +12,7 @@ import cerebras_gradio
12
  import groq_gradio
13
  import together_gradio
14
  import nvidia_gradio
 
15
 
16
 
17
 
@@ -294,24 +295,33 @@ with gr.Blocks(fill_height=True) as demo:
294
  with gr.Row():
295
  qwen_model = gr.Dropdown(
296
  choices=[
297
- 'Qwen/Qwen2.5-72B-Instruct',
298
- 'Qwen/Qwen2.5-Coder-32B-Instruct'
 
 
 
 
 
 
 
 
 
299
  ],
300
- value='Qwen/Qwen2.5-72B-Instruct',
301
  label="Select Qwen Model",
302
  interactive=True
303
  )
304
 
305
  qwen_interface = gr.load(
306
  name=qwen_model.value,
307
- src=hyperbolic_gradio.registry,
308
  fill_height=True
309
  )
310
 
311
  def update_qwen_model(new_model):
312
  return gr.load(
313
  name=new_model,
314
- src=hyperbolic_gradio.registry,
315
  fill_height=True
316
  )
317
 
@@ -322,11 +332,16 @@ with gr.Blocks(fill_height=True) as demo:
322
  )
323
 
324
  gr.Markdown("""
325
- <div>
326
- <img src="https://storage.googleapis.com/public-arena-asset/hyperbolic_logo.png" alt="Hyperbolic Logo" style="height: 50px; margin-right: 10px;">
327
- </div>
328
-
329
- **Note:** This model is supported by Hyperbolic. Build your AI apps at [Hyperbolic](https://app.hyperbolic.xyz/).
 
 
 
 
 
330
  """)
331
  with gr.Tab("Perplexity"):
332
  with gr.Row():
 
12
  import groq_gradio
13
  import together_gradio
14
  import nvidia_gradio
15
+ import dashscope_gradio
16
 
17
 
18
 
 
295
  with gr.Row():
296
  qwen_model = gr.Dropdown(
297
  choices=[
298
+ # Proprietary Qwen Models
299
+ 'qwen-turbo-latest',
300
+ 'qwen-turbo',
301
+ 'qwen-plus',
302
+ 'qwen-max',
303
+ # Open Source Qwen Models
304
+ 'qwen1.5-110b-chat',
305
+ 'qwen1.5-72b-chat',
306
+ 'qwen1.5-32b-chat',
307
+ 'qwen1.5-14b-chat',
308
+ 'qwen1.5-7b-chat'
309
  ],
310
+ value='qwen-turbo-latest', # Default to the latest turbo model
311
  label="Select Qwen Model",
312
  interactive=True
313
  )
314
 
315
  qwen_interface = gr.load(
316
  name=qwen_model.value,
317
+ src=dashscope_gradio.registry,
318
  fill_height=True
319
  )
320
 
321
  def update_qwen_model(new_model):
322
  return gr.load(
323
  name=new_model,
324
+ src=dashscope_gradio.registry,
325
  fill_height=True
326
  )
327
 
 
332
  )
333
 
334
  gr.Markdown("""
335
+ **Note:** You need a DashScope API key to use these models. Get one at [DashScope](https://dashscope.aliyun.com/).
336
+
337
+ Models available in two categories:
338
+ - **Proprietary Models**:
339
+ - Qwen Turbo: Fast responses for general tasks
340
+ - Qwen Plus: Balanced performance and quality
341
+ - Qwen Max: Highest quality responses
342
+ - **Open Source Models**:
343
+ - Available in various sizes from 7B to 110B parameters
344
+ - Based on the Qwen 1.5 architecture
345
  """)
346
  with gr.Tab("Perplexity"):
347
  with gr.Row():
requirements.txt CHANGED
@@ -11,3 +11,4 @@ git+https://github.com/gradio-app/cerebras_gradio.git
11
  groq-gradio
12
  together-gradio
13
  git+https://github.com/AK391/nvidia-gradio.git
 
 
11
  groq-gradio
12
  together-gradio
13
  git+https://github.com/AK391/nvidia-gradio.git
14
+ git+https://github.com/AK391/dashscope-gradio.git