Update app.py
Browse files
app.py
CHANGED
@@ -123,12 +123,13 @@ def generate(input=DEFAULT_INPUT, filter_input="", negative_input=DEFAULT_NEGATI
|
|
123 |
images = repo(**parameters).images
|
124 |
image_paths = [save_image(img, seed) for img in images]
|
125 |
|
|
|
|
|
126 |
classifier = pipeline("image-classification", model="Falconsai/nsfw_image_detection")(Image.open(image_paths[0]))
|
127 |
|
128 |
-
print(image_paths)
|
129 |
print(classifier)
|
130 |
|
131 |
-
return image_paths, classifier
|
132 |
|
133 |
def cloud():
|
134 |
print("[CLOUD] | Space maintained.")
|
|
|
123 |
images = repo(**parameters).images
|
124 |
image_paths = [save_image(img, seed) for img in images]
|
125 |
|
126 |
+
print(image_paths)
|
127 |
+
|
128 |
classifier = pipeline("image-classification", model="Falconsai/nsfw_image_detection")(Image.open(image_paths[0]))
|
129 |
|
|
|
130 |
print(classifier)
|
131 |
|
132 |
+
return image_paths, classifier[0]
|
133 |
|
134 |
def cloud():
|
135 |
print("[CLOUD] | Space maintained.")
|