Spaces:
Build error
Build error
AppleBotzz
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ import anthropic
|
|
7 |
from anthropic import Anthropic
|
8 |
|
9 |
def image_to_base64(image_path):
|
10 |
-
"""Convert the
|
11 |
with open(image_path, "rb") as image_file:
|
12 |
image_data = image_file.read()
|
13 |
return base64.b64encode(image_data).decode("utf-8")
|
|
|
7 |
from anthropic import Anthropic
|
8 |
|
9 |
def image_to_base64(image_path):
|
10 |
+
"""Convert the image to base64."""
|
11 |
with open(image_path, "rb") as image_file:
|
12 |
image_data = image_file.read()
|
13 |
return base64.b64encode(image_data).decode("utf-8")
|