Update app.py
Browse files
app.py
CHANGED
|
@@ -51,7 +51,8 @@ def load_genealogy_from_text(text):
|
|
| 51 |
|
| 52 |
def prepare_data():
|
| 53 |
try:
|
| 54 |
-
|
|
|
|
| 55 |
text = f.read()
|
| 56 |
global GENEALOGY_KB
|
| 57 |
GENEALOGY_KB = load_genealogy_from_text(text)
|
|
|
|
| 51 |
|
| 52 |
def prepare_data():
|
| 53 |
try:
|
| 54 |
+
# with open("冯氏家谱.txt", "r", encoding="utf-8") as f:
|
| 55 |
+
with open("genealogy.txt", "r", encoding="utf-8") as f:
|
| 56 |
text = f.read()
|
| 57 |
global GENEALOGY_KB
|
| 58 |
GENEALOGY_KB = load_genealogy_from_text(text)
|