Spaces:
Configuration error
Configuration error
f string dobule quotes to single quotes to make it work on python 3.11
Browse files
faster_whisper_server/main.py
CHANGED
@@ -132,7 +132,7 @@ def get_model(
|
|
132 |
if exact_match is None:
|
133 |
raise HTTPException(
|
134 |
status_code=404,
|
135 |
-
detail=f"Model doesn't exists. Possible matches: {
|
136 |
)
|
137 |
assert exact_match.created_at is not None
|
138 |
assert exact_match.card_data is not None
|
|
|
132 |
if exact_match is None:
|
133 |
raise HTTPException(
|
134 |
status_code=404,
|
135 |
+
detail=f"Model doesn't exists. Possible matches: {', '.join([model.id for model in models])}",
|
136 |
)
|
137 |
assert exact_match.created_at is not None
|
138 |
assert exact_match.card_data is not None
|