Update app.py
Browse files
app.py
CHANGED
@@ -123,7 +123,7 @@ def create_base64_markdown_image(image_url):
|
|
123 |
base64_encoded = base64.b64encode(image_data).decode('utf-8')
|
124 |
mime_type = response.headers.get('Content-Type', 'image/png')
|
125 |
markdown_image_link = f"![image](data:{mime_type};base64,{base64_encoded})"
|
126 |
-
|
127 |
logging.info(f"Created base64 markdown image link.")
|
128 |
return markdown_image_link
|
129 |
except requests.exceptions.RequestException as e:
|
|
|
123 |
base64_encoded = base64.b64encode(image_data).decode('utf-8')
|
124 |
mime_type = response.headers.get('Content-Type', 'image/png')
|
125 |
markdown_image_link = f"![image](data:{mime_type};base64,{base64_encoded})"
|
126 |
+
print(markdown_image_link)
|
127 |
logging.info(f"Created base64 markdown image link.")
|
128 |
return markdown_image_link
|
129 |
except requests.exceptions.RequestException as e:
|