Spaces:
Sleeping
Sleeping
Kieran Fraser
commited on
Commit
·
d024632
1
Parent(s):
0bb257b
Updated requirements.txt
Browse filesSigned-off-by: Kieran Fraser <[email protected]>
- app.py +8 -7
- requirements.txt +2 -2
app.py
CHANGED
@@ -386,15 +386,16 @@ with gr.Blocks(css=css, theme=gr.themes.Base()) as demo:
|
|
386 |
gr.Markdown("Select a Hugging Face model to launch an adversarial attack against.")
|
387 |
model_type = gr.Radio(label="Hugging Face Model", choices=["Example", "Other"], value="Example")
|
388 |
with gr.Column(visible=False) as other_model:
|
|
|
389 |
model_url = gr.Text(label="Model URL",
|
390 |
placeholder="e.g. facebook/deit-tiny-distilled-patch16-224",
|
391 |
-
value='facebook/deit-tiny-distilled-patch16-224')
|
392 |
-
model_input_channels = gr.Text(label="Input channels", value=3)
|
393 |
-
model_input_height = gr.Text(label="Input height", value=32)
|
394 |
-
model_input_width = gr.Text(label="Input width", value=32)
|
395 |
-
model_num_classes = gr.Text(label="Number of classes", value=10)
|
396 |
-
model_clip_values = gr.Radio(label="Clip values", choices=[1, 255], value=1)
|
397 |
-
model_upsample_scaling = gr.Slider(label="Upsample scale factor", minimum=1, maximum=10, value=7)
|
398 |
|
399 |
model_type.change(show_params, model_type, other_model)
|
400 |
|
|
|
386 |
gr.Markdown("Select a Hugging Face model to launch an adversarial attack against.")
|
387 |
model_type = gr.Radio(label="Hugging Face Model", choices=["Example", "Other"], value="Example")
|
388 |
with gr.Column(visible=False) as other_model:
|
389 |
+
gr.Markdown("Coming soon.")
|
390 |
model_url = gr.Text(label="Model URL",
|
391 |
placeholder="e.g. facebook/deit-tiny-distilled-patch16-224",
|
392 |
+
value='facebook/deit-tiny-distilled-patch16-224', visible=False)
|
393 |
+
model_input_channels = gr.Text(label="Input channels", value=3, visible=False)
|
394 |
+
model_input_height = gr.Text(label="Input height", value=32, visible=False)
|
395 |
+
model_input_width = gr.Text(label="Input width", value=32, visible=False)
|
396 |
+
model_num_classes = gr.Text(label="Number of classes", value=10, visible=False)
|
397 |
+
model_clip_values = gr.Radio(label="Clip values", choices=[1, 255], value=1, visible=False)
|
398 |
+
model_upsample_scaling = gr.Slider(label="Upsample scale factor", minimum=1, maximum=10, value=7, visible=False)
|
399 |
|
400 |
model_type.change(show_params, model_type, other_model)
|
401 |
|
requirements.txt
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
pandas
|
2 |
jupyter
|
3 |
-
torch
|
4 |
-
torchvision
|
5 |
transformers
|
|
|
|
|
6 |
tensorflow==2.10.1; sys_platform != "darwin"
|
7 |
tensorflow-macos; sys_platform == "darwin"
|
8 |
tensorflow-metal; sys_platform == "darwin"
|
|
|
1 |
pandas
|
2 |
jupyter
|
|
|
|
|
3 |
transformers
|
4 |
+
torch==1.13.1
|
5 |
+
torchvision==0.14.0
|
6 |
tensorflow==2.10.1; sys_platform != "darwin"
|
7 |
tensorflow-macos; sys_platform == "darwin"
|
8 |
tensorflow-metal; sys_platform == "darwin"
|