Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -156,8 +156,6 @@ def transcribe_chinese(audio_file, chinese_variant="Traditional"):
|
|
156 |
if chinese_variant == "Traditional":
|
157 |
# Convert simplified to traditional
|
158 |
# Use s2t for more complete conversion from Simplified to Traditional
|
159 |
-
cc = OpenCC('s2twp') # s2twp
|
160 |
-
asr_text = cc.convert(asr_text)
|
161 |
cc = OpenCC('s2t') # s2t
|
162 |
asr_text = cc.convert(asr_text)
|
163 |
elif chinese_variant == "Simplified" and not asr_text.isascii():
|
|
|
156 |
if chinese_variant == "Traditional":
|
157 |
# Convert simplified to traditional
|
158 |
# Use s2t for more complete conversion from Simplified to Traditional
|
|
|
|
|
159 |
cc = OpenCC('s2t') # s2t
|
160 |
asr_text = cc.convert(asr_text)
|
161 |
elif chinese_variant == "Simplified" and not asr_text.isascii():
|