Update app.py
Browse files
app.py
CHANGED
@@ -131,11 +131,7 @@ def generate(input=DEFAULT_INPUT, filter_input="", negative_input=DEFAULT_NEGATI
|
|
131 |
|
132 |
print(nsfw_prediction)
|
133 |
|
134 |
-
|
135 |
-
|
136 |
-
print(nsfw_format)
|
137 |
-
|
138 |
-
return image_paths, nsfw_format
|
139 |
|
140 |
def cloud():
|
141 |
print("[CLOUD] | Space maintained.")
|
|
|
131 |
|
132 |
print(nsfw_prediction)
|
133 |
|
134 |
+
return image_paths, {item['label']: round(item['score'], 3) for item in nsfw_prediction}
|
|
|
|
|
|
|
|
|
135 |
|
136 |
def cloud():
|
137 |
print("[CLOUD] | Space maintained.")
|