Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -138,7 +138,7 @@ def create_border_decoration(qr_image, decoration_style="Flowers"):
|
|
138 |
|
139 |
return decorated_image
|
140 |
|
141 |
-
def create_qr(content, qr_type, fill_color, back_color, box_size, border_size, error_correction, border_decoration="
|
142 |
# QR 코드 데이터 포맷팅
|
143 |
formatted_data = format_data(content, qr_type)
|
144 |
|
@@ -164,8 +164,8 @@ def create_qr(content, qr_type, fill_color, back_color, box_size, border_size, e
|
|
164 |
# QR 이미지 생성
|
165 |
qr_img = qr.make_image(fill_color=fill_color, back_color=back_color)
|
166 |
|
167 |
-
# Add border decoration if specified and not
|
168 |
-
if border_decoration
|
169 |
qr_img = create_border_decoration(qr_img, border_decoration)
|
170 |
|
171 |
# 파일 저장
|
|
|
138 |
|
139 |
return decorated_image
|
140 |
|
141 |
+
def create_qr(content, qr_type, fill_color, back_color, box_size, border_size, error_correction, border_decoration=""):
|
142 |
# QR 코드 데이터 포맷팅
|
143 |
formatted_data = format_data(content, qr_type)
|
144 |
|
|
|
164 |
# QR 이미지 생성
|
165 |
qr_img = qr.make_image(fill_color=fill_color, back_color=back_color)
|
166 |
|
167 |
+
# Add border decoration if specified and not empty
|
168 |
+
if border_decoration.strip():
|
169 |
qr_img = create_border_decoration(qr_img, border_decoration)
|
170 |
|
171 |
# 파일 저장
|