Spaces:
Running
Running
Commit
•
081a6f9
1
Parent(s):
a1f1af1
Update app.py
Browse files
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 = {
|