liuxuan320 commited on
Commit
04d2d57
·
verified ·
1 Parent(s): bed79b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -39,7 +39,8 @@ 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
- print_directory_structure(base_dir)
 
43
  with open(os.path.join(DATA_DIR, f"{task}.json"), "r", encoding='utf-8') as f:
44
  test_data = json.load(f)
45
 
 
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