Update app.py
Browse files
app.py
CHANGED
@@ -117,7 +117,7 @@ def test_model_availability(api_key, model_name):
|
|
117 |
def create_base64_markdown_image(image_url):
|
118 |
try:
|
119 |
response = requests.get(image_url, stream=True)
|
120 |
-
response.raise_for_status()
|
121 |
|
122 |
image_data = response.content
|
123 |
base64_encoded = base64.b64encode(image_data).decode('utf-8')
|
|
|
117 |
def create_base64_markdown_image(image_url):
|
118 |
try:
|
119 |
response = requests.get(image_url, stream=True)
|
120 |
+
response.raise_for_status()
|
121 |
|
122 |
image_data = response.content
|
123 |
base64_encoded = base64.b64encode(image_data).decode('utf-8')
|