wylum commited on
Commit
01becdf
·
verified ·
1 Parent(s): df3ce35

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +38 -2
app.py CHANGED
@@ -35,9 +35,45 @@ def process(input_img):
35
  blurred_image_path = circular_blur(input_img, detections, parts_to_blur)
36
  return blurred_image_path
37
 
38
- title = "Nudity Censor"
39
  theme = "Nymbo/Alyx_Theme"
40
 
41
- iface = gr.Interface(process, gr.components.Image(type='filepath'), gr.components.Image(type="filepath"), title=title, theme=theme)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
 
43
  iface.launch()
 
35
  blurred_image_path = circular_blur(input_img, detections, parts_to_blur)
36
  return blurred_image_path
37
 
38
+ title = "Nudity Censor Vincent version 2.1"
39
  theme = "Nymbo/Alyx_Theme"
40
 
41
+ iface = gr.Interface(
42
+ process, input = gr.components.Image(type='filepath'), output = gr.components.Image(type="filepath"),
43
+ gr.Examples(
44
+ examples=[
45
+ [
46
+ "magazine_sample1.jpeg",
47
+ #"yolov10x",
48
+ #640,
49
+ #0.25,
50
+ #0.45,
51
+ ],
52
+ [
53
+ "magazine_sample2.jpeg",
54
+ #"yolov10m",
55
+ #640,
56
+ #0.25,
57
+ #0.45,
58
+ ],
59
+ ],
60
+ fn=process,
61
+ inputs=[
62
+ image,
63
+ #model_id,
64
+ #image_size,
65
+ #conf_threshold,
66
+ #iou_threshold,
67
+ ],
68
+ outputs=[input],
69
+ cache_examples="lazy",
70
+ ),
71
+
72
+ title=title, theme=theme
73
+
74
+
75
+
76
+
77
+ )
78
 
79
  iface.launch()