Ashrafb commited on
Commit
af4a7d4
·
verified ·
1 Parent(s): 344e066

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -44,7 +44,7 @@ async def process_image(file: UploadFile = File(...), top: int = Form(...), bott
44
  logging.error("Failed to process the image: No face detected or alignment failed.")
45
  return {"error": message}
46
 
47
- processed_image, message = model.image_toonify(aligned_face, instyle, model.exstyle, style_degree=0.5, style_type='cartoon4')
48
  if processed_image is None:
49
  logging.error("Failed to toonify the image.")
50
  return {"error": message}
 
44
  logging.error("Failed to process the image: No face detected or alignment failed.")
45
  return {"error": message}
46
 
47
+ processed_image, message = model.image_toonify(aligned_face, instyle, model.exstyle, style_degree=0.5, style_type='cartoon1')
48
  if processed_image is None:
49
  logging.error("Failed to toonify the image.")
50
  return {"error": message}