suko commited on
Commit
c906ee2
1 Parent(s): 60514b9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -16
app.py CHANGED
@@ -102,19 +102,14 @@ def predict(image):
102
  inputs = gr.inputs.Image(type="pil")
103
  outputs = gr.outputs.JSON()
104
 
105
- text_element = "This model and website are created by KUO SUKO, C110156115 from NKUST."
106
-
107
- interface = gr.Interface(
108
- fn=predict,
109
- inputs=inputs,
110
- outputs=outputs,
111
- title="Naked Detector",
112
- description="🍆😳",
113
- examples=[[Image.new("RGB", (224, 224))]],
114
- theme="default",
115
- layout="vertical",
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
+