Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -39,8 +39,9 @@ def print_directory_structure(start_path, indent=''):
|
|
39 |
def load_test_data(task):
|
40 |
"""Load the JSON file corresponding to the selected task"""
|
41 |
# 调用函数,打印当前目录结构
|
42 |
-
|
43 |
-
|
|
|
44 |
with open(os.path.join(DATA_DIR, f"{task}.json"), "r", encoding='utf-8') as f:
|
45 |
test_data = json.load(f)
|
46 |
|
|
|
39 |
def load_test_data(task):
|
40 |
"""Load the JSON file corresponding to the selected task"""
|
41 |
# 调用函数,打印当前目录结构
|
42 |
+
with open('/app/test_text.txt', 'r') as file:
|
43 |
+
content = file.read()
|
44 |
+
print(content)
|
45 |
with open(os.path.join(DATA_DIR, f"{task}.json"), "r", encoding='utf-8') as f:
|
46 |
test_data = json.load(f)
|
47 |
|