Spaces:
Sleeping
Sleeping
evanzyfan commited on
Commit ·
8d2763b
1
Parent(s): 27d0b7a
load movie synopis in Chinese
Browse files
app.py
CHANGED
|
@@ -63,7 +63,7 @@ def _load_story_scripts() -> Dict[str, str]:
|
|
| 63 |
if script_path.exists():
|
| 64 |
with open(script_path, "r", encoding="utf-8-sig") as f:
|
| 65 |
entries = json.load(f)
|
| 66 |
-
return {entry["id"]: entry["script"] for entry in entries}
|
| 67 |
return {}
|
| 68 |
|
| 69 |
|
|
|
|
| 63 |
if script_path.exists():
|
| 64 |
with open(script_path, "r", encoding="utf-8-sig") as f:
|
| 65 |
entries = json.load(f)
|
| 66 |
+
return {entry["id"]: entry["script"]["cn"] for entry in entries}
|
| 67 |
return {}
|
| 68 |
|
| 69 |
|