Ashrafb commited on
Commit
a88bd62
·
verified ·
1 Parent(s): a9b6686

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -20,7 +20,7 @@ async def process_image(file: UploadFile = File(...)):
20
  exstyle, load_info = model.load_model('cartoon1')
21
 
22
  # Process the uploaded image
23
- actual bounding box coordinates
24
  top, bottom, left, right = 200, 200,200, 200
25
  aligned_face, _, input_info = model.detect_and_align_image("uploaded_image.jpg", top, bottom, left, right)
26
  processed_image, message = model.image_toonify(aligned_face, exstyle, 'cartoon1', style_degree=0.5)
 
20
  exstyle, load_info = model.load_model('cartoon1')
21
 
22
  # Process the uploaded image
23
+
24
  top, bottom, left, right = 200, 200,200, 200
25
  aligned_face, _, input_info = model.detect_and_align_image("uploaded_image.jpg", top, bottom, left, right)
26
  processed_image, message = model.image_toonify(aligned_face, exstyle, 'cartoon1', style_degree=0.5)