wylum commited on
Commit
f466ae1
·
verified ·
1 Parent(s): cd118ea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -7
app.py CHANGED
@@ -38,9 +38,17 @@ def process(input_img):
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"), title=title, theme=theme,
43
- gr.Examples(
 
 
 
 
 
 
 
 
44
  examples=[
45
  [
46
  "magazine_sample1.jpeg",
@@ -71,7 +79,4 @@ iface = gr.Interface(
71
 
72
 
73
 
74
-
75
- )
76
-
77
- iface.launch()
 
38
  title = "Nudity Censor Vincent version 2.1"
39
  theme = "Nymbo/Alyx_Theme"
40
 
41
+
42
+ def app():
43
+ with gr.Blocks():
44
+ with gr.Row():
45
+ with gr.Column():
46
+ input = gr.components.Image(type='filepath')
47
+ with gr.Column():
48
+ output = gr.components.Image(type='filepath')
49
+
50
+ #with gr.Row():
51
+ gr.Examples(
52
  examples=[
53
  [
54
  "magazine_sample1.jpeg",
 
79
 
80
 
81
 
82
+ demo.queue().launch(share=True)