Ashrafb commited on
Commit
23d0106
·
verified ·
1 Parent(s): 48a2b6c

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -23,7 +23,7 @@ async def process_image(file: UploadFile = File(...)):
23
  # Process the uploaded image
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, instyle, exstyle, style_degree=0.5, style_type='cartoon1')
27
 
28
  # Save the processed image
29
  with open("result_image.jpg", "wb") as result_buffer:
 
23
  # Process the uploaded image
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, style_degree=0.5, style_type='cartoon1')
27
 
28
  # Save the processed image
29
  with open("result_image.jpg", "wb") as result_buffer: