model2 commited on
Commit
ce308f8
·
1 Parent(s): afe2486

fix preloading

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -54,11 +54,11 @@ hf_hub_download(
54
  filename="buffalo_l.zip",
55
  local_dir="models/insightface/models",
56
  )
57
- hf_hub_download(
58
- repo_id="AdamCodd/vit-base-nsfw-detector",
59
- filename="model.safetensors",
60
- local_dir="models/nsfw_detector/vit-base-nsfw-detector",
61
- )
62
  hf_hub_download(
63
  repo_id="model2/advance_face_model",
64
  filename="advance_face_model.safetensors",
@@ -286,15 +286,15 @@ if __name__ == "__main__":
286
  # Add a title
287
  gr.Markdown(
288
  "# Advance Blur"
289
- ""
290
  'Advance Blur uses a sophisticated technique called "Vance Blurring"'
291
  " to anonymize images of people. This process also removes identifiable"
292
  " metadata. Uploaded images and data are permanently deleted after processing."
293
- ""
294
  "Advance Blur works best when subjects face the camera. Any similarity to"
295
  " persons, living or dead, is purely coincidental, comedic, karmic justice,"
296
  " and/or parody."
297
- ""
298
  "_No sofas, couches, chaises, or other living-room furniture have been harmed in "
299
  " the production of this application._"
300
  )
 
54
  filename="buffalo_l.zip",
55
  local_dir="models/insightface/models",
56
  )
57
+ # hf_hub_download(
58
+ # repo_id="AdamCodd/vit-base-nsfw-detector",
59
+ # filename="model.safetensors",
60
+ # local_dir="models/nsfw_detector/vit-base-nsfw-detector",
61
+ # )
62
  hf_hub_download(
63
  repo_id="model2/advance_face_model",
64
  filename="advance_face_model.safetensors",
 
286
  # Add a title
287
  gr.Markdown(
288
  "# Advance Blur"
289
+ "\n\n"
290
  'Advance Blur uses a sophisticated technique called "Vance Blurring"'
291
  " to anonymize images of people. This process also removes identifiable"
292
  " metadata. Uploaded images and data are permanently deleted after processing."
293
+ "\n\n"
294
  "Advance Blur works best when subjects face the camera. Any similarity to"
295
  " persons, living or dead, is purely coincidental, comedic, karmic justice,"
296
  " and/or parody."
297
+ "\n\n"
298
  "_No sofas, couches, chaises, or other living-room furniture have been harmed in "
299
  " the production of this application._"
300
  )