Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,7 @@ def crop_face(base64_image):
|
|
40 |
except Exception as e:
|
41 |
return f"An error occurred: {str(e)}"
|
42 |
|
43 |
-
|
44 |
def image_to_base64(image):
|
45 |
buffered = BytesIO()
|
46 |
image.save(buffered, format="JPEG")
|
|
|
40 |
except Exception as e:
|
41 |
return f"An error occurred: {str(e)}"
|
42 |
|
43 |
+
@spaces.GPU
|
44 |
def image_to_base64(image):
|
45 |
buffered = BytesIO()
|
46 |
image.save(buffered, format="JPEG")
|