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

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"]
51
  })
52
 
53
  info = {
 
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 = {