Files changed (1) hide show
  1. app.py +50 -0
app.py CHANGED
@@ -214,6 +214,56 @@ with gr.Blocks(fill_height=True) as demo:
214
  gr.Markdown("""
215
  **Note:** You need a Groq API key to use these models. Get one at [Groq Cloud](https://console.groq.com/).
216
  """)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
217
  with gr.Tab("Qwen"):
218
  with gr.Row():
219
  qwen_model = gr.Dropdown(
 
214
  gr.Markdown("""
215
  **Note:** You need a Groq API key to use these models. Get one at [Groq Cloud](https://console.groq.com/).
216
  """)
217
+ with gr.Tab("Hyperbolic"):
218
+ with gr.Row():
219
+ hyperbolic_model = gr.Dropdown(
220
+ choices=[
221
+ # # Vision Models (TODO)
222
+ # 'Qwen/Qwen2-VL-72B-Instruct', # 32K context
223
+ # 'mistralai/Pixtral-12B-2409', # 32K context
224
+ # 'Qwen/Qwen2-VL-7B-Instruct', # 32K context
225
+ # Large Language Models
226
+ 'Qwen/Qwen2.5-Coder-32B-Instruct', # 131K context
227
+ 'meta-llama/Llama-3.2-3B-Instruct', # 131K context
228
+ 'meta-llama/Meta-Llama-3.1-8B-Instruct', # 131k context
229
+ 'meta-llama/Meta-Llama-3.1-70B-Instruct', # 32K context
230
+ 'meta-llama/Meta-Llama-3-70B-Instruct', # 8K context
231
+ 'NousResearch/Hermes-3-Llama-3.1-70B', # 12K context
232
+ 'Qwen/Qwen2.5-72B-Instruct', # 32K context
233
+ 'deepseek-ai/DeepSeek-V2.5', # 8K context
234
+ 'meta-llama/Meta-Llama-3.1-405B-Instruct', # 8K context
235
+ ],
236
+ value='Qwen/Qwen2.5-Coder-32B-Instruct',
237
+ label="Select Hyperbolic Model",
238
+ interactive=True
239
+ )
240
+
241
+ hyperbolic_interface = gr.load(
242
+ name=hyperbolic_model.value,
243
+ src=hyperbolic_gradio.registry,
244
+ fill_height=True
245
+ )
246
+
247
+ def update_hyperbolic_model(new_model):
248
+ return gr.load(
249
+ name=new_model,
250
+ src=hyperbolic_gradio.registry,
251
+ fill_height=True
252
+ )
253
+
254
+ hyperbolic_model.change(
255
+ fn=update_hyperbolic_model,
256
+ inputs=[hyperbolic_model],
257
+ outputs=[hyperbolic_interface]
258
+ )
259
+
260
+ gr.Markdown("""
261
+ <div>
262
+ <img src="https://storage.googleapis.com/public-arena-asset/hyperbolic_logo.png" alt="Hyperbolic Logo" style="height: 50px; margin-right: 10px;">
263
+ </div>
264
+
265
+ **Note:** This model is supported by Hyperbolic. Build your AI apps at [Hyperbolic](https://app.hyperbolic.xyz/).
266
+ """)
267
  with gr.Tab("Qwen"):
268
  with gr.Row():
269
  qwen_model = gr.Dropdown(