Spaces:
Running
Running
Commit
Β·
aa333ff
1
Parent(s):
9fb1282
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
import gradio
|
| 2 |
from huggingface_hub import Repository
|
| 3 |
import os
|
| 4 |
|
|
@@ -275,6 +275,8 @@ with gr.Blocks(theme=theme) as blk_demo:
|
|
| 275 |
label='Anonymization ratio (%)')
|
| 276 |
mrg_in = gr.Slider(0, 100, value=100,
|
| 277 |
label='Adversarial defense ratio (%)')
|
|
|
|
|
|
|
| 278 |
with gr.Column():
|
| 279 |
with gr.Box():
|
| 280 |
ano_out = gr.Image(type="pil", label='Output').style(height=300)
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
from huggingface_hub import Repository
|
| 3 |
import os
|
| 4 |
|
|
|
|
| 275 |
label='Anonymization ratio (%)')
|
| 276 |
mrg_in = gr.Slider(0, 100, value=100,
|
| 277 |
label='Adversarial defense ratio (%)')
|
| 278 |
+
gr.Examples(examples=[["assets/musk.jpg"], ["assets/rick.jpg"]],
|
| 279 |
+
inputs=trg_in)
|
| 280 |
with gr.Column():
|
| 281 |
with gr.Box():
|
| 282 |
ano_out = gr.Image(type="pil", label='Output').style(height=300)
|