Skip to content

Commit 26bb240

Browse files
committed
Fix Black formatting
Signed-off-by: Beat Buesser <[email protected]>
1 parent 4f118a9 commit 26bb240

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/attacks/test_steal_now_attack_later.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,7 @@ def collect_patches_from_images(detector, imgs):
7878

7979
# Download a sample image
8080
target = "https://farm2.staticflickr.com/1065/705706084_39a7f28fc9_z.jpg" # val2017/000000552842.jpg
81-
headers = {
82-
"User-Agent": "Mozilla/5.0",
83-
"Referer": "https://www.flickr.com/"
84-
}
81+
headers = {"User-Agent": "Mozilla/5.0", "Referer": "https://www.flickr.com/"}
8582
response = requests.get(target, headers=headers)
8683
org_img = np.asarray(Image.open(BytesIO(response.content)).resize((640, 640)))
8784
x = np.stack([org_img.transpose((2, 0, 1)) / 255.0], axis=0).astype(np.float32)

0 commit comments

Comments
 (0)