multimodalart HF staff commited on
Commit
3ab46fc
1 Parent(s): 081a6f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -47,7 +47,7 @@ def extract_info(json_data):
47
  "url": image["url"],
48
  "filename": os.path.basename(image["url"]),
49
  "type": "imageName",
50
- "prompt": image["meta"]["prompt"] if "prompt" in image["meta"] else ""
51
  })
52
 
53
  info = {
 
47
  "url": image["url"],
48
  "filename": os.path.basename(image["url"]),
49
  "type": "imageName",
50
+ "prompt": image["meta"]["prompt"] if image["meta"] is not None and "prompt" in image["meta"] else ""
51
  })
52
 
53
  info = {