Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
| 42 |
-
|
| 43 |
-
gr.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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)
|
|
|
|
|
|
|
|
|