akhaliq HF staff commited on
Commit
8dc7aad
2 Parent(s): a0ec21d 3289c64

Merge branch 'main' of https://huggingface.co/spaces/akhaliq/anychat

Browse files
Files changed (1) hide show
  1. app.py +50 -0
app.py CHANGED
@@ -238,6 +238,56 @@ with gr.Blocks(fill_height=True) as demo:
238
  gr.Markdown("""
239
  **Note:** You need a Groq API key to use these models. Get one at [Groq Cloud](https://console.groq.com/).
240
  """)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
241
  with gr.Tab("Qwen"):
242
  with gr.Row():
243
  qwen_model = gr.Dropdown(
 
238
  gr.Markdown("""
239
  **Note:** You need a Groq API key to use these models. Get one at [Groq Cloud](https://console.groq.com/).
240
  """)
241
+ with gr.Tab("Hyperbolic"):
242
+ with gr.Row():
243
+ hyperbolic_model = gr.Dropdown(
244
+ choices=[
245
+ # # Vision Models (TODO)
246
+ # 'Qwen/Qwen2-VL-72B-Instruct', # 32K context
247
+ # 'mistralai/Pixtral-12B-2409', # 32K context
248
+ # 'Qwen/Qwen2-VL-7B-Instruct', # 32K context
249
+ # Large Language Models
250
+ 'Qwen/Qwen2.5-Coder-32B-Instruct', # 131K context
251
+ 'meta-llama/Llama-3.2-3B-Instruct', # 131K context
252
+ 'meta-llama/Meta-Llama-3.1-8B-Instruct', # 131k context
253
+ 'meta-llama/Meta-Llama-3.1-70B-Instruct', # 32K context
254
+ 'meta-llama/Meta-Llama-3-70B-Instruct', # 8K context
255
+ 'NousResearch/Hermes-3-Llama-3.1-70B', # 12K context
256
+ 'Qwen/Qwen2.5-72B-Instruct', # 32K context
257
+ 'deepseek-ai/DeepSeek-V2.5', # 8K context
258
+ 'meta-llama/Meta-Llama-3.1-405B-Instruct', # 8K context
259
+ ],
260
+ value='Qwen/Qwen2.5-Coder-32B-Instruct',
261
+ label="Select Hyperbolic Model",
262
+ interactive=True
263
+ )
264
+
265
+ hyperbolic_interface = gr.load(
266
+ name=hyperbolic_model.value,
267
+ src=hyperbolic_gradio.registry,
268
+ fill_height=True
269
+ )
270
+
271
+ def update_hyperbolic_model(new_model):
272
+ return gr.load(
273
+ name=new_model,
274
+ src=hyperbolic_gradio.registry,
275
+ fill_height=True
276
+ )
277
+
278
+ hyperbolic_model.change(
279
+ fn=update_hyperbolic_model,
280
+ inputs=[hyperbolic_model],
281
+ outputs=[hyperbolic_interface]
282
+ )
283
+
284
+ gr.Markdown("""
285
+ <div>
286
+ <img src="https://storage.googleapis.com/public-arena-asset/hyperbolic_logo.png" alt="Hyperbolic Logo" style="height: 50px; margin-right: 10px;">
287
+ </div>
288
+
289
+ **Note:** This model is supported by Hyperbolic. Build your AI apps at [Hyperbolic](https://app.hyperbolic.xyz/).
290
+ """)
291
  with gr.Tab("Qwen"):
292
  with gr.Row():
293
  qwen_model = gr.Dropdown(