Spaces:
Running
Running
Update app2.py
Browse files
app2.py
CHANGED
@@ -346,10 +346,10 @@ def generate_qr_code(data: Union[str, Dict], combined: bool = True) -> List[str]
|
|
346 |
img.save(str(output_path))
|
347 |
return [str(output_path)]
|
348 |
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
|
354 |
def decode_qr_code(image_path: str) -> str:
|
355 |
"""Decode QR code from an image file"""
|
|
|
346 |
img.save(str(output_path))
|
347 |
return [str(output_path)]
|
348 |
|
349 |
+
return []
|
350 |
+
except Exception as e:
|
351 |
+
logger.error(f"QR generation error: {e}")
|
352 |
+
return []
|
353 |
|
354 |
def decode_qr_code(image_path: str) -> str:
|
355 |
"""Decode QR code from an image file"""
|