typo on encode_image()
Browse files
app.py
CHANGED
@@ -133,7 +133,7 @@ chat_mode = {}
|
|
133 |
|
134 |
def encode_image(image_path):
|
135 |
with open(image_path, "rb") as image_file:
|
136 |
-
return base64.
|
137 |
|
138 |
def generation(message, history):
|
139 |
"""
|
|
|
133 |
|
134 |
def encode_image(image_path):
|
135 |
with open(image_path, "rb") as image_file:
|
136 |
+
return base64.b64encode(image_file.read()).decode('utf-8')
|
137 |
|
138 |
def generation(message, history):
|
139 |
"""
|