acecalisto3 commited on
Commit
7ae78cf
Β·
verified Β·
1 Parent(s): ac0ad33

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.ERROR_CORRECT_H,
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