Spaces:
Sleeping
Sleeping
List BarScript first: appended last it fell below the dropdown fold and read as missing
Browse files
app.py
CHANGED
|
@@ -122,10 +122,19 @@ def is_sc2_model(model_choice):
|
|
| 122 |
|
| 123 |
|
| 124 |
def available_models():
|
| 125 |
-
"""Selectable model names. BarScript appears only when its package resolves.
|
| 126 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 127 |
if sc2_loader.is_available():
|
| 128 |
names.append(SC2_MODEL)
|
|
|
|
| 129 |
return names
|
| 130 |
|
| 131 |
|
|
|
|
| 122 |
|
| 123 |
|
| 124 |
def available_models():
|
| 125 |
+
"""Selectable model names. BarScript appears only when its package resolves.
|
| 126 |
+
|
| 127 |
+
BarScript is listed FIRST, not last. Appended at the end it fell below the
|
| 128 |
+
fold of the dropdown -- present in /api/capabilities but invisible to
|
| 129 |
+
someone looking for it, which reads exactly like "it was never added".
|
| 130 |
+
Its group header says EXPERIMENTAL PREVIEW and selecting it renders the
|
| 131 |
+
model card's defect list, so leading with it is not a recommendation; the
|
| 132 |
+
default stays v1.7.
|
| 133 |
+
"""
|
| 134 |
+
names = []
|
| 135 |
if sc2_loader.is_available():
|
| 136 |
names.append(SC2_MODEL)
|
| 137 |
+
names.extend(MODELS)
|
| 138 |
return names
|
| 139 |
|
| 140 |
|