capradeepgujaran commited on
Commit
7f71307
1 Parent(s): c1efbd4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -445,10 +445,10 @@ class CertificateGenerator:
445
  # Paste the photo
446
  certificate.paste(output, position, mask=output)
447
 
448
- except Exception as e:
449
- print(f"Error adding photo: {str(e)}")
450
- print(f"Photo path: {photo_path}")
451
- print(f"Photo details: {getattr(photo, 'size', 'unknown size')}, {getattr(photo, 'mode', 'unknown mode')}")
452
 
453
  def generate(
454
  self,
 
445
  # Paste the photo
446
  certificate.paste(output, position, mask=output)
447
 
448
+ except Exception as e:
449
+ print(f"Error adding photo: {str(e)}")
450
+ print(f"Photo path: {photo_path}")
451
+ print(f"Photo details: {getattr(photo, 'size', 'unknown size')}, {getattr(photo, 'mode', 'unknown mode')}")
452
 
453
  def generate(
454
  self,