Spaces:
Sleeping
Sleeping
Kieran Fraser
commited on
Commit
•
17d66d4
1
Parent(s):
82d0451
Fix layout
Browse files- app.py +0 -15
- requirements.txt +1 -1
app.py
CHANGED
@@ -25,22 +25,7 @@ from art.attacks.poisoning.perturbations import insert_image
|
|
25 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
26 |
|
27 |
css = """
|
28 |
-
:root {
|
29 |
-
--text-md: 20px !important;
|
30 |
-
--text-sm: 18px !important;
|
31 |
-
}
|
32 |
-
.input-image { margin: auto !important }
|
33 |
-
.plot-padding { padding: 20px; }
|
34 |
-
.eta-bar.svelte-1occ011.svelte-1occ011 {
|
35 |
-
background: #ccccff !important;
|
36 |
-
}
|
37 |
-
.center-text { text-align: center !important }
|
38 |
-
.larger-gap { gap: 100px !important; }
|
39 |
-
.symbols { text-align: center !important; margin: auto !important; }
|
40 |
|
41 |
-
div.svelte-15lo0d8>*, div.svelte-15lo0d8>.form > * {
|
42 |
-
min-width: 0px !important;
|
43 |
-
}
|
44 |
"""
|
45 |
|
46 |
def sample_CIFAR10():
|
|
|
25 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
26 |
|
27 |
css = """
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
|
|
|
|
|
|
|
29 |
"""
|
30 |
|
31 |
def sample_CIFAR10():
|
requirements.txt
CHANGED
@@ -7,4 +7,4 @@ tensorflow==2.10.1; sys_platform != "darwin"
|
|
7 |
tensorflow-macos; sys_platform == "darwin"
|
8 |
tensorflow-metal; sys_platform == "darwin"
|
9 |
adversarial-robustness-toolbox
|
10 |
-
gradio==4.
|
|
|
7 |
tensorflow-macos; sys_platform == "darwin"
|
8 |
tensorflow-metal; sys_platform == "darwin"
|
9 |
adversarial-robustness-toolbox
|
10 |
+
gradio==4.15
|