Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -23,6 +23,7 @@ def generate_qr_code(text:str)-> AgentImage: #it's import to specify the return
|
|
| 23 |
qr.add_data(text)
|
| 24 |
qr.make(fit=True)
|
| 25 |
img = qr.make_image(fill_color="black", back_color="white").convert('RGB')
|
|
|
|
| 26 |
return AgentImage(img)
|
| 27 |
except Exception as e:
|
| 28 |
return f"Error generating QR code:{str(e)}"
|
|
|
|
| 23 |
qr.add_data(text)
|
| 24 |
qr.make(fit=True)
|
| 25 |
img = qr.make_image(fill_color="black", back_color="white").convert('RGB')
|
| 26 |
+
print(img.size)
|
| 27 |
return AgentImage(img)
|
| 28 |
except Exception as e:
|
| 29 |
return f"Error generating QR code:{str(e)}"
|