Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -588,6 +588,11 @@ def process_all_inputs(urls, file, text, notes):
|
|
588 |
logger.error(f"Processing error: {e}")
|
589 |
return None, f"Error: {str(e)}", ""
|
590 |
|
|
|
|
|
|
|
|
|
|
|
591 |
# Move generate_qr outside of the FileProcessor class as well
|
592 |
def generate_qr(json_data):
|
593 |
"""Generate QR code from JSON data and return the file path."""
|
|
|
588 |
logger.error(f"Processing error: {e}")
|
589 |
return None, f"Error: {str(e)}", ""
|
590 |
|
591 |
+
def generate_qr_code(json_data):
|
592 |
+
"""Generate QR code from JSON data and return the file path."""
|
593 |
+
if json_data:
|
594 |
+
return generate_qr(json_data)
|
595 |
+
|
596 |
# Move generate_qr outside of the FileProcessor class as well
|
597 |
def generate_qr(json_data):
|
598 |
"""Generate QR code from JSON data and return the file path."""
|