liuxuan320 commited on
Commit
125e66b
·
verified ·
1 Parent(s): 75eaf24

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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
- if os.path.exists(DATA_DIR):
43
- print(DATA_DIR + " is exists")
 
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