Update app.py
Browse files
app.py
CHANGED
@@ -58,12 +58,13 @@ def classify_image(input):
|
|
58 |
else:
|
59 |
return result[0]["label"], result[0]["score"], "Indifferent", face, dffImage, gradCamImage
|
60 |
|
|
|
61 |
iface = gr.Interface(
|
62 |
fn=classify_image,
|
63 |
inputs="image",
|
64 |
outputs=["text", "number", "text", "image", "image", "image"],
|
65 |
title="Attraction Classifier - subjective",
|
66 |
-
description=f"Takes in a (224, 224) image and outputs an attraction class: {'pos', 'neg'}, along with a GradCam/DFF explanation. Face detection, cropping, and resizing are done internally. Uploaded images are not stored by us, but may be stored by HF. Refer to their [privacy policy](https://huggingface.co/privacy) for details.\nAssociated post:
|
67 |
)
|
68 |
|
69 |
iface.launch()
|
|
|
58 |
else:
|
59 |
return result[0]["label"], result[0]["score"], "Indifferent", face, dffImage, gradCamImage
|
60 |
|
61 |
+
|
62 |
iface = gr.Interface(
|
63 |
fn=classify_image,
|
64 |
inputs="image",
|
65 |
outputs=["text", "number", "text", "image", "image", "image"],
|
66 |
title="Attraction Classifier - subjective",
|
67 |
+
description=f"Takes in a (224, 224) image and outputs an attraction class: {'pos', 'neg'}, along with a GradCam/DFF explanation. Face detection, cropping, and resizing are done internally. Uploaded images are not stored by us, but may be stored by HF. Refer to their [privacy policy](https://huggingface.co/privacy) for details.\nAssociated post: (https://simtoon.ongakken.com/Projects/Personal/Girl+classifier/desc+-+girl+classifier)"
|
68 |
)
|
69 |
|
70 |
iface.launch()
|