Spaces:
Running
Running
'add translation'
Browse files- whisperui.py +2 -2
whisperui.py
CHANGED
|
@@ -26,9 +26,9 @@ class WhisperModelUI(object):
|
|
| 26 |
try:
|
| 27 |
asr_model = whisper.load_model(model_type.lower())
|
| 28 |
self.whisper_model = asr_model
|
| 29 |
-
status = "{}
|
| 30 |
except:
|
| 31 |
-
status = "
|
| 32 |
|
| 33 |
return status, str(self.whisper_model)
|
| 34 |
|
|
|
|
| 26 |
try:
|
| 27 |
asr_model = whisper.load_model(model_type.lower())
|
| 28 |
self.whisper_model = asr_model
|
| 29 |
+
status = "{} ロード完了".format(model_type)
|
| 30 |
except:
|
| 31 |
+
status = "ロードエラー {} model".format(model_type)
|
| 32 |
|
| 33 |
return status, str(self.whisper_model)
|
| 34 |
|