Spaces:
Runtime error
Runtime error
Commit
·
569d21a
1
Parent(s):
5a0a3ea
Add youtube link
Browse files
app.py
CHANGED
|
@@ -136,7 +136,7 @@ with gr.Blocks() as demo:
|
|
| 136 |
Interactive Demo: Immunize your Photos Against AI-Powered Malicious Manipulation </h1><br>
|
| 137 |
""")
|
| 138 |
gr.Markdown(description)
|
| 139 |
-
with gr.Accordion(label='
|
| 140 |
gr.Markdown('''
|
| 141 |
+ Upload an image (or select from the examples below)
|
| 142 |
+ Use the brush to mask the parts of the image you want to keep unedited (e.g., faces of people)
|
|
@@ -148,6 +148,16 @@ with gr.Blocks() as demo:
|
|
| 148 |
+ You will get an immunized version of the image (which should look essentially identical to the original one) as well as its edited version (which should now look rather unrealistic)
|
| 149 |
''')
|
| 150 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 151 |
with gr.Row():
|
| 152 |
with gr.Column():
|
| 153 |
imgmask = gr.ImageMask(label='Drawing tool to mask regions you want to keep, e.g. faces')
|
|
@@ -167,4 +177,4 @@ with gr.Blocks() as demo:
|
|
| 167 |
|
| 168 |
|
| 169 |
demo.launch()
|
| 170 |
-
# demo.launch(server_name='0.0.0.0', share=
|
|
|
|
| 136 |
Interactive Demo: Immunize your Photos Against AI-Powered Malicious Manipulation </h1><br>
|
| 137 |
""")
|
| 138 |
gr.Markdown(description)
|
| 139 |
+
with gr.Accordion(label='How to use (step by step):', open=False):
|
| 140 |
gr.Markdown('''
|
| 141 |
+ Upload an image (or select from the examples below)
|
| 142 |
+ Use the brush to mask the parts of the image you want to keep unedited (e.g., faces of people)
|
|
|
|
| 148 |
+ You will get an immunized version of the image (which should look essentially identical to the original one) as well as its edited version (which should now look rather unrealistic)
|
| 149 |
''')
|
| 150 |
|
| 151 |
+
with gr.Accordion(label='Example (video):', open=False):
|
| 152 |
+
gr.HTML('''
|
| 153 |
+
<center>
|
| 154 |
+
<iframe width="920" height="600" src="https://www.youtube.com/embed/aTC59Q6ZDNM">
|
| 155 |
+
allowfullscreen="allowfullscreen" frameborder="0">
|
| 156 |
+
</iframe>
|
| 157 |
+
</center>
|
| 158 |
+
'''
|
| 159 |
+
)
|
| 160 |
+
|
| 161 |
with gr.Row():
|
| 162 |
with gr.Column():
|
| 163 |
imgmask = gr.ImageMask(label='Drawing tool to mask regions you want to keep, e.g. faces')
|
|
|
|
| 177 |
|
| 178 |
|
| 179 |
demo.launch()
|
| 180 |
+
# demo.launch(server_name='0.0.0.0', share=True, server_port=7860, inline=False)
|