Spaces:
orrinin
/
Runtime error

orrinin commited on
Commit
7885939
·
verified ·
1 Parent(s): 12e62d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -132,9 +132,8 @@ def generate(
132
  print(file)
133
  json_file = os.path.join(result,"captions.json")
134
  with open(json_file, 'r') as f:
135
- json_data = json.load(f)
136
- json_data = json.loads(json_data)
137
- print(json_data)
138
  for img in json_data["data"]:
139
  images.append(img)
140
  return images, seed
 
132
  print(file)
133
  json_file = os.path.join(result,"captions.json")
134
  with open(json_file, 'r') as f:
135
+ print(f)
136
+ json_data = f
 
137
  for img in json_data["data"]:
138
  images.append(img)
139
  return images, seed