Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
fix again
Browse files
utils.py
CHANGED
@@ -24,7 +24,7 @@ def get_app(
|
|
24 |
if ':' in model_name: # Handle provider:model format
|
25 |
provider, model = model_name.split(':')
|
26 |
if f"{provider}:{model}" in src:
|
27 |
-
src[f"{provider}:{model}"]
|
28 |
else:
|
29 |
raise ValueError(f"Model {model_name} not found in registry. Available models: {list(src.keys())}")
|
30 |
else:
|
|
|
24 |
if ':' in model_name: # Handle provider:model format
|
25 |
provider, model = model_name.split(':')
|
26 |
if f"{provider}:{model}" in src:
|
27 |
+
src[f"{provider}:{model}"](name=model_name, **kwargs)
|
28 |
else:
|
29 |
raise ValueError(f"Model {model_name} not found in registry. Available models: {list(src.keys())}")
|
30 |
else:
|