Spaces:
Sleeping
Sleeping
Tirath5504
commited on
Commit
•
04d2c5d
1
Parent(s):
545b84d
Update app.py
Browse files
app.py
CHANGED
@@ -20,9 +20,9 @@ def predict(image):
|
|
20 |
return predicted_class
|
21 |
|
22 |
iface = gr.Interface(fn=predict,
|
23 |
-
inputs=gr.
|
24 |
-
outputs=gr.
|
25 |
-
title="Hateful
|
26 |
description="Upload an image to classify hateful gestures or symbols")
|
27 |
|
28 |
if __name__ == "__main__":
|
|
|
20 |
return predicted_class
|
21 |
|
22 |
iface = gr.Interface(fn=predict,
|
23 |
+
inputs=gr.Image(type="pil"),
|
24 |
+
outputs=gr.Label(num_top_classes=1),
|
25 |
+
title="Hateful Content Detection",
|
26 |
description="Upload an image to classify hateful gestures or symbols")
|
27 |
|
28 |
if __name__ == "__main__":
|