JiantaoLin commited on
Commit
671daef
·
1 Parent(s): 8ed8caa
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -284,7 +284,7 @@ def image_to_base64(image_path):
284
  """Converts an image file to a base64-encoded string."""
285
  with open(image_path, "rb") as img_file:
286
  return base64.b64encode(img_file.read()).decode('utf-8')
287
-
288
  def main():
289
 
290
  torch.set_grad_enabled(False)
 
284
  """Converts an image file to a base64-encoded string."""
285
  with open(image_path, "rb") as img_file:
286
  return base64.b64encode(img_file.read()).decode('utf-8')
287
+ @spaces.GPU
288
  def main():
289
 
290
  torch.set_grad_enabled(False)