Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -354,7 +354,7 @@ def generate_stylish_qr(data: Union[str, Dict],
|
|
354 |
try:
|
355 |
qr = qrcode.QRCode(
|
356 |
version=None,
|
357 |
-
error_correction=qrcode.constants.
|
358 |
box_size=size,
|
359 |
border=border
|
360 |
)
|
@@ -549,7 +549,7 @@ def create_modern_interface():
|
|
549 |
with gr.Tab("π File Input"):
|
550 |
file_input = gr.File(
|
551 |
label="Upload Files",
|
552 |
-
file_types=["text", "zip"],
|
553 |
file_count="multiple"
|
554 |
)
|
555 |
|
|
|
354 |
try:
|
355 |
qr = qrcode.QRCode(
|
356 |
version=None,
|
357 |
+
error_correction=qrcode.constants.ERROR_CORRECT_M,
|
358 |
box_size=size,
|
359 |
border=border
|
360 |
)
|
|
|
549 |
with gr.Tab("π File Input"):
|
550 |
file_input = gr.File(
|
551 |
label="Upload Files",
|
552 |
+
file_types=["text/*", "application/zip"], # Allow all text files and ZIP
|
553 |
file_count="multiple"
|
554 |
)
|
555 |
|