Spaces:
Running
Running
Commit
•
245e93e
1
Parent(s):
6ed08df
Update app.py
Browse files
app.py
CHANGED
@@ -62,7 +62,7 @@ def extract_info(json_data):
|
|
62 |
|
63 |
# Then append all image URLs to the list
|
64 |
for image in model_version["images"]:
|
65 |
-
image_id = image["url"].split("/")[-1]
|
66 |
prompt, negative_prompt = get_prompts_from_image(image_id)
|
67 |
if image["nsfwLevel"] > 2:
|
68 |
pass #ugly before checking the actual logic
|
|
|
62 |
|
63 |
# Then append all image URLs to the list
|
64 |
for image in model_version["images"]:
|
65 |
+
image_id = image["url"].split("/")[-1].split(".")[0]
|
66 |
prompt, negative_prompt = get_prompts_from_image(image_id)
|
67 |
if image["nsfwLevel"] > 2:
|
68 |
pass #ugly before checking the actual logic
|