Spaces:
Runtime error
Runtime error
freemt
commited on
Commit
•
fac3e4e
1
Parent(s):
3134951
Fix utils.py
Browse files- radio_mlbee/utils.py +2 -2
radio_mlbee/utils.py
CHANGED
@@ -11,7 +11,7 @@ except Exception as exc:
|
|
11 |
logger.error("rea text1 error: %s, setting to ''", exc)
|
12 |
text1 = ""
|
13 |
try:
|
14 |
-
text2 = Path(data_dir, "test-zh.txt").read_text()
|
15 |
except Exception as exc:
|
16 |
-
logger.
|
17 |
text2 = ""
|
|
|
11 |
logger.error("rea text1 error: %s, setting to ''", exc)
|
12 |
text1 = ""
|
13 |
try:
|
14 |
+
text2 = Path(data_dir, "test-zh.txt").read_text(encoding="utf8")
|
15 |
except Exception as exc:
|
16 |
+
logger.error("read text2 error: %s, setting to ''", exc)
|
17 |
text2 = ""
|