user-agent commited on
Commit
ebafa99
·
verified ·
1 Parent(s): 9f36b61

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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")