stzhao commited on
Commit
a081295
·
verified ·
1 Parent(s): 6f22201

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -5,6 +5,7 @@ import random
5
  def load_jsonl(file):
6
  """读取上传的jsonl文件并解析为字典列表"""
7
  data = []
 
8
  for line in file:
9
  data.append(json.loads(line))
10
  return data
 
5
  def load_jsonl(file):
6
  """读取上传的jsonl文件并解析为字典列表"""
7
  data = []
8
+ file = open(file, "r")
9
  for line in file:
10
  data.append(json.loads(line))
11
  return data