Spaces:
Runtime error
Runtime error
add qwen 32b
Browse files
app.py
CHANGED
@@ -172,12 +172,37 @@ with gr.Blocks(fill_height=True) as demo:
|
|
172 |
accept_token=True,
|
173 |
fill_height=True
|
174 |
)
|
175 |
-
with gr.Tab("
|
176 |
-
gr.
|
177 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
178 |
src=hyperbolic_gradio.registry,
|
179 |
fill_height=True
|
180 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
181 |
gr.Markdown("""
|
182 |
<div>
|
183 |
<img src="https://storage.googleapis.com/public-arena-asset/hyperbolic_logo.png" alt="Hyperbolic Logo" style="height: 50px; margin-right: 10px;">
|
|
|
172 |
accept_token=True,
|
173 |
fill_height=True
|
174 |
)
|
175 |
+
with gr.Tab("Qwen"):
|
176 |
+
with gr.Row():
|
177 |
+
qwen_model = gr.Dropdown(
|
178 |
+
choices=[
|
179 |
+
'Qwen/Qwen2.5-72B-Instruct',
|
180 |
+
'Qwen/Qwen2.5-Coder-32B-Instruct'
|
181 |
+
],
|
182 |
+
value='Qwen/Qwen2.5-72B-Instruct',
|
183 |
+
label="Select Qwen Model",
|
184 |
+
interactive=True
|
185 |
+
)
|
186 |
+
|
187 |
+
qwen_interface = gr.load(
|
188 |
+
name=qwen_model.value,
|
189 |
src=hyperbolic_gradio.registry,
|
190 |
fill_height=True
|
191 |
)
|
192 |
+
|
193 |
+
def update_qwen_model(new_model):
|
194 |
+
return gr.load(
|
195 |
+
name=new_model,
|
196 |
+
src=hyperbolic_gradio.registry,
|
197 |
+
fill_height=True
|
198 |
+
)
|
199 |
+
|
200 |
+
qwen_model.change(
|
201 |
+
fn=update_qwen_model,
|
202 |
+
inputs=[qwen_model],
|
203 |
+
outputs=[qwen_interface]
|
204 |
+
)
|
205 |
+
|
206 |
gr.Markdown("""
|
207 |
<div>
|
208 |
<img src="https://storage.googleapis.com/public-arena-asset/hyperbolic_logo.png" alt="Hyperbolic Logo" style="height: 50px; margin-right: 10px;">
|