suko commited on
Commit
1668fa4
1 Parent(s): 78c3a04

Updated the deprecated part

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -99,8 +99,8 @@ def predict(image):
99
  output["confidence"] = round(output["confidence"], 4)
100
  return prediction
101
 
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. \n This model and website are created by KUO SUKO, C110156115 NKUST."
106
 
 
99
  output["confidence"] = round(output["confidence"], 4)
100
  return prediction
101
 
102
+ inputs = gr.Image(type="pil")
103
+ outputs = gr.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. \n This model and website are created by KUO SUKO, C110156115 NKUST."
106