Skip to content

Commit fb5c340

Browse files
committed
Fix models:dir field not working
1 parent bd1a073 commit fb5c340

File tree

1 file changed

+1
-1
lines changed
  • pkg/cortex/serve/cortex_internal/lib/model

1 file changed

+1
-1
lines changed

pkg/cortex/serve/cortex_internal/lib/model/type.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def get_models_from_api_spec(
159159
else:
160160
return CuratedModelResources([])
161161

162-
if not models_spec["path"] and len(models_spec["paths"]) == 0:
162+
if not models_spec["path"] and not models_spec["paths"]:
163163
return CuratedModelResources([])
164164

165165
# for models.path

0 commit comments

Comments
 (0)