Spaces:
Running
Running
Update app2.py
Browse files
app2.py
CHANGED
@@ -355,7 +355,7 @@ def decode_qr_code(image_path: str) -> str:
|
|
355 |
"""Decode QR code from an image file"""
|
356 |
try:
|
357 |
img = Image.open(image_path)
|
358 |
-
decoded_objects = decode(img
|
359 |
if decoded_objects:
|
360 |
return decoded_objects[0].data.decode('utf-8')
|
361 |
raise ValueError("Unable to decode QR code")
|
|
|
355 |
"""Decode QR code from an image file"""
|
356 |
try:
|
357 |
img = Image.open(image_path)
|
358 |
+
decoded_objects = decode(img)
|
359 |
if decoded_objects:
|
360 |
return decoded_objects[0].data.decode('utf-8')
|
361 |
raise ValueError("Unable to decode QR code")
|