Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -69,9 +69,8 @@ def generate_adversarial_image(image, eps_value):
|
|
| 69 |
return adv_image_pil
|
| 70 |
|
| 71 |
# ์ํฐ๋งํฌ ์ฝ์
ํจ์
|
| 72 |
-
def apply_watermark(image_pil):
|
| 73 |
-
|
| 74 |
-
bwm = WaterMark(password_img=123, password_wm=456)
|
| 75 |
|
| 76 |
# ์ด๋ฏธ์ง ๋ฐ์ดํธ ๋ฐ์ดํฐ๋ฅผ ์์ ํ์ผ๋ก ์ ์ฅ
|
| 77 |
temp_image_path = "temp_image.png"
|
|
|
|
| 69 |
return adv_image_pil
|
| 70 |
|
| 71 |
# ์ํฐ๋งํฌ ์ฝ์
ํจ์
|
| 72 |
+
def apply_watermark(image_pil, wm_text="123", password_img=123, password_wm=456):
|
| 73 |
+
bwm = WaterMark(password_img=password_img, password_wm=password_wm)
|
|
|
|
| 74 |
|
| 75 |
# ์ด๋ฏธ์ง ๋ฐ์ดํธ ๋ฐ์ดํฐ๋ฅผ ์์ ํ์ผ๋ก ์ ์ฅ
|
| 76 |
temp_image_path = "temp_image.png"
|