Spaces:
Sleeping
Sleeping
matanninio
commited on
Commit
·
cb75880
1
Parent(s):
ec656e5
Number of matching models now shown in model checker
Browse files
app.py
CHANGED
@@ -77,11 +77,11 @@ def create_application():
|
|
77 |
]
|
78 |
if choices:
|
79 |
return (
|
80 |
-
gr.update(choices=choices, value=choices[0], visible=True),
|
81 |
*visibility,
|
82 |
)
|
83 |
else:
|
84 |
-
return (gr.update(visible=False, value=None), *visibility)
|
85 |
|
86 |
def model_change(value):
|
87 |
return gr.update(
|
|
|
77 |
]
|
78 |
if choices:
|
79 |
return (
|
80 |
+
gr.update(choices=choices, value=choices[0], visible=True, label=f"Matching Mammal models ({len(choices)})",),
|
81 |
*visibility,
|
82 |
)
|
83 |
else:
|
84 |
+
return (gr.update(visible=False, value=None, label="No Matching Mammal models"), *visibility, )
|
85 |
|
86 |
def model_change(value):
|
87 |
return gr.update(
|