Spaces:
Sleeping
Sleeping
matanninio
commited on
Commit
•
e6f876b
1
Parent(s):
2a65056
model selector renamed and changed to a radio selection, which seems better for the task
Browse files
app.py
CHANGED
@@ -46,7 +46,7 @@ def create_application():
|
|
46 |
)
|
47 |
task_dropdown.interactive = True
|
48 |
with gr.Row():
|
49 |
-
|
50 |
choices=[
|
51 |
model_name
|
52 |
for model_name, model in all_models.items()
|
@@ -62,16 +62,16 @@ def create_application():
|
|
62 |
visible=False,
|
63 |
)
|
64 |
|
65 |
-
|
66 |
-
model_change, inputs=[
|
67 |
)
|
68 |
|
69 |
task_dropdown.change(
|
70 |
task_change,
|
71 |
inputs=[task_dropdown],
|
72 |
-
outputs=[
|
73 |
+ [
|
74 |
-
all_tasks[task].demo(model_name_widgit=
|
75 |
for task in all_tasks
|
76 |
],
|
77 |
)
|
|
|
46 |
)
|
47 |
task_dropdown.interactive = True
|
48 |
with gr.Row():
|
49 |
+
model_name_selector = gr.Radio(
|
50 |
choices=[
|
51 |
model_name
|
52 |
for model_name, model in all_models.items()
|
|
|
62 |
visible=False,
|
63 |
)
|
64 |
|
65 |
+
model_name_selector.change(
|
66 |
+
model_change, inputs=[model_name_selector], outputs=[goto_card_button]
|
67 |
)
|
68 |
|
69 |
task_dropdown.change(
|
70 |
task_change,
|
71 |
inputs=[task_dropdown],
|
72 |
+
outputs=[model_name_selector]
|
73 |
+ [
|
74 |
+
all_tasks[task].demo(model_name_widgit=model_name_selector)
|
75 |
for task in all_tasks
|
76 |
],
|
77 |
)
|