ysharma HF Staff commited on
Commit
2f4b88f
·
1 Parent(s): 5f83b63
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -124,7 +124,12 @@ Below you can test our (encoder attack) immunization method for making images re
124
  **This is a research project and is not production-ready. See Section 5 in our paper for discussion on its limitations.**
125
  <details closed>'''
126
 
127
- with gr.Accordion('Click for demo steps:'):
 
 
 
 
 
128
  gr.HTML('''
129
  + Upload an image (or select from the below examples!)
130
  + Mask (using the drawing tool) the parts of the image you want to maintain unedited (e.g., faces of people)
@@ -136,11 +141,6 @@ Now let's immunize your image and try again!
136
  + You will get the immunized image (which looks identical to the original one) and the edited image, which is now hopefully unrealistic!
137
  </details>''')
138
 
139
-
140
- with gr.Blocks() as demo:
141
- gr.HTML(value="""<h1 style="font-weight: 900; margin-bottom: 7px; margin-top: 5px;">
142
- Interactive Demo: Immunize your Photos Against AI-powered Malicious Manipulation </h1><br>
143
- """)
144
  with gr.Row():
145
  with gr.Column():
146
  imgmask = gr.ImageMask(label='Drawing tool to mask regions you want to keep, e.g. faces')
 
124
  **This is a research project and is not production-ready. See Section 5 in our paper for discussion on its limitations.**
125
  <details closed>'''
126
 
127
+ with gr.Blocks() as demo:
128
+ gr.HTML(value="""<h1 style="font-weight: 900; margin-bottom: 7px; margin-top: 5px;">
129
+ Interactive Demo: Immunize your Photos Against AI-powered Malicious Manipulation </h1><br>
130
+ """)
131
+ gr.HTML(description)
132
+ with gr.Accordion('Click for demo steps:'):
133
  gr.HTML('''
134
  + Upload an image (or select from the below examples!)
135
  + Mask (using the drawing tool) the parts of the image you want to maintain unedited (e.g., faces of people)
 
141
  + You will get the immunized image (which looks identical to the original one) and the edited image, which is now hopefully unrealistic!
142
  </details>''')
143
 
 
 
 
 
 
144
  with gr.Row():
145
  with gr.Column():
146
  imgmask = gr.ImageMask(label='Drawing tool to mask regions you want to keep, e.g. faces')