acecalisto3 commited on
Commit
9ed7318
Β·
verified Β·
1 Parent(s): ad8b65f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -731,7 +731,7 @@ def create_modern_interface():
731
  clear_btn = gr.Button("πŸ—‘οΈ Clear", variant="secondary")
732
  with gr.Row():
733
  combine_data = gr.Checkbox(
734
- label="Combine all data into sequence",
735
  value=True,
736
  info="Generate sequential QR codes for combined data"
737
  )
@@ -852,6 +852,10 @@ def create_modern_interface():
852
  outputs=[output_json, output_gallery, output_text]
853
  )
854
 
 
 
 
 
855
  # Add helpful documentation
856
  gr.Markdown("""
857
  ### πŸš€ Features
@@ -864,7 +868,7 @@ def create_modern_interface():
864
  ### πŸ’‘ Tips
865
  1. **URLs**: Enter multiple URLs separated by commas or newlines
866
  2. **Files**: Upload any type of file. The processor will attempt to handle supported text-based files, archives (.zip, .tar, .gz), and JSON files.
867
- 3. **JSON**: Use the example button to see the expected format or upload a .json file. The system will also try to detect JSON content in other file types.
868
  4. **QR Codes**: Choose whether to combine data into sequential codes
869
  5. **Processing**: Monitor the status for real-time feedback
870
 
 
731
  clear_btn = gr.Button("πŸ—‘οΈ Clear", variant="secondary")
732
  with gr.Row():
733
  combine_data = gr.Checkbox(
734
+ label="Combine all data into sequence ",
735
  value=True,
736
  info="Generate sequential QR codes for combined data"
737
  )
 
852
  outputs=[output_json, output_gallery, output_text]
853
  )
854
 
855
+ # Add the visualization button
856
+ visualize_btn = gr.Button("πŸ” Visualize QR Codes")
857
+ visualize_btn.click(visualize_qr_codes, inputs=output_gallery, outputs=None)
858
+
859
  # Add helpful documentation
860
  gr.Markdown("""
861
  ### πŸš€ Features
 
868
  ### πŸ’‘ Tips
869
  1. **URLs**: Enter multiple URLs separated by commas or newlines
870
  2. **Files**: Upload any type of file. The processor will attempt to handle supported text-based files, archives (.zip, .tar, .gz), and JSON files.
871
+ 3. **JSON**: Use the example button to see the expected format or upload a .json file. The system will also try to detect JSON content in other file types.
872
  4. **QR Codes**: Choose whether to combine data into sequential codes
873
  5. **Processing**: Monitor the status for real-time feedback
874