victorisgeek commited on
Commit
94f6632
1 Parent(s): 90949d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -193,8 +193,7 @@ def process(
193
 
194
  ## ------------------------------ PREPARE INPUTS & LOAD MODELS ------------------------------
195
 
196
- yield "### \n ⌛ Loading NSFW detector model...", *ui_before()
197
- load_nsfw_detector_model()
198
 
199
  yield "### \n ⌛ Loading face analyser model...", *ui_before()
200
  load_face_analyser_model()
@@ -233,7 +232,7 @@ def process(
233
  message = "NSFW Content detected !!!"
234
  yield f"### \n 🔞 {message}", *ui_before()
235
  assert not nsfw, message
236
- return False
237
  EMPTY_CACHE()
238
 
239
  ## ------------------------------ ANALYSE FACE ------------------------------
 
193
 
194
  ## ------------------------------ PREPARE INPUTS & LOAD MODELS ------------------------------
195
 
196
+
 
197
 
198
  yield "### \n ⌛ Loading face analyser model...", *ui_before()
199
  load_face_analyser_model()
 
232
  message = "NSFW Content detected !!!"
233
  yield f"### \n 🔞 {message}", *ui_before()
234
  assert not nsfw, message
235
+ return True
236
  EMPTY_CACHE()
237
 
238
  ## ------------------------------ ANALYSE FACE ------------------------------