Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -102,19 +102,14 @@ def predict(image):
|
|
102 |
inputs = gr.inputs.Image(type="pil")
|
103 |
outputs = gr.outputs.JSON()
|
104 |
|
105 |
-
|
106 |
-
|
107 |
-
interface = gr.Interface(
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
)
|
117 |
-
|
118 |
-
interface.additional_styles = {"body": {"margin": "10px"}}
|
119 |
-
|
120 |
-
interface.launch()
|
|
|
102 |
inputs = gr.inputs.Image(type="pil")
|
103 |
outputs = gr.outputs.JSON()
|
104 |
|
105 |
+
description = "This is a web interface for the Naked Detector model. Upload an image and get predictions for the presence of nudity."
|
106 |
+
|
107 |
+
interface = gr.Interface(title="Naked Detector", fn=predict, inputs=inputs, outputs=outputs, description=description)
|
108 |
+
interface.launch()
|
109 |
+
|
110 |
+
|
111 |
+
|
112 |
+
|
113 |
+
|
114 |
+
|
115 |
+
|
|
|
|
|
|
|
|
|
|