You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Win11, local instance, latest version as of 28 Oct 2024.
I was getting the error below. Did a full reinstall and was still getting it. Console:
Use "faster-whisper" implementation Device "cuda" is detected Traceback (most recent call last): File "H:\Whisper-WebUI\app.py", line 483, in <module> app.launch() File "H:\Whisper-WebUI\app.py", line 232, in launch with self.i18n: File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\contextlib.py", line 142, in __exit__ next(self.gen) File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio_i18n\i18n.py", line 330, in Translate translation_dict = yaml.safe_load(f) File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\yaml\__init__.py", line 125, in safe_load return load(stream, SafeLoader) File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\yaml\__init__.py", line 79, in load loader = Loader(stream) File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\yaml\loader.py", line 34, in __init__ Reader.__init__(self, stream) File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\yaml\reader.py", line 85, in __init__ self.determine_encoding() File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\yaml\reader.py", line 124, in determine_encoding self.update_raw() File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\yaml\reader.py", line 178, in update_raw data = self.stream.read(size) File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\encodings\cp1252.py", line 23, in decode return codecs.charmap_decode(input,self.errors,decoding_table)[0] UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 2456: character maps to <undefined> "launching the app" Press any key to continue .
Following the traceback, I went to my "AppData\Local\Programs\Python\Python310\Lib\site-packages\gradio_i18n" and found "i18n.py". I changed line 326 from "with open(translation, "r") as f:" to "with open(translation, "r", encoding="utf-8") as f:" and now the UI runs just fine.
You should account for this situation so that less technical users with certain locale settings don't run into this issue.
The text was updated successfully, but these errors were encountered:
Win11, local instance, latest version as of 28 Oct 2024.
I was getting the error below. Did a full reinstall and was still getting it. Console:
Use "faster-whisper" implementation Device "cuda" is detected Traceback (most recent call last): File "H:\Whisper-WebUI\app.py", line 483, in <module> app.launch() File "H:\Whisper-WebUI\app.py", line 232, in launch with self.i18n: File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\contextlib.py", line 142, in __exit__ next(self.gen) File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio_i18n\i18n.py", line 330, in Translate translation_dict = yaml.safe_load(f) File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\yaml\__init__.py", line 125, in safe_load return load(stream, SafeLoader) File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\yaml\__init__.py", line 79, in load loader = Loader(stream) File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\yaml\loader.py", line 34, in __init__ Reader.__init__(self, stream) File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\yaml\reader.py", line 85, in __init__ self.determine_encoding() File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\yaml\reader.py", line 124, in determine_encoding self.update_raw() File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\yaml\reader.py", line 178, in update_raw data = self.stream.read(size) File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\encodings\cp1252.py", line 23, in decode return codecs.charmap_decode(input,self.errors,decoding_table)[0] UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 2456: character maps to <undefined> "launching the app" Press any key to continue .
Following the traceback, I went to my "AppData\Local\Programs\Python\Python310\Lib\site-packages\gradio_i18n" and found "i18n.py". I changed line 326 from "with open(translation, "r") as f:" to "with open(translation, "r", encoding="utf-8") as f:" and now the UI runs just fine.
You should account for this situation so that less technical users with certain locale settings don't run into this issue.
The text was updated successfully, but these errors were encountered: