Update main.py
Browse files
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='
|
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}
|