JiantaoLin
commited on
Commit
·
671daef
1
Parent(s):
8ed8caa
new
Browse files
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)
|