Commit
·
b1d5bcd
1
Parent(s):
a6f60a8
small fixes
Browse files
app.py
CHANGED
|
@@ -191,7 +191,7 @@ def process(
|
|
| 191 |
)
|
| 192 |
|
| 193 |
text = decode(recognizer, filename)
|
| 194 |
-
if add_punct == "Yes" and language
|
| 195 |
punct = get_punct_model()
|
| 196 |
text = punct.add_punctuation(text)
|
| 197 |
|
|
|
|
| 191 |
)
|
| 192 |
|
| 193 |
text = decode(recognizer, filename)
|
| 194 |
+
if add_punct == "Yes" and language in ("Chinese", "四川话"):
|
| 195 |
punct = get_punct_model()
|
| 196 |
text = punct.add_punctuation(text)
|
| 197 |
|