Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -524,6 +524,7 @@ def classify(platform, UserInput, Images, Textbox2, Textbox3):
|
|
524 |
if platform == "wh":
|
525 |
get_image = requests.get(Images, headers=headers)
|
526 |
if get_image.status_code == 200:
|
|
|
527 |
# Correct base64 encoding and URL creation
|
528 |
image_base64 = base64.b64encode(get_image.content).decode("utf-8")
|
529 |
image_data_url = f"data:image/png;base64,{image_base64}"
|
|
|
524 |
if platform == "wh":
|
525 |
get_image = requests.get(Images, headers=headers)
|
526 |
if get_image.status_code == 200:
|
527 |
+
print(get_image.content)
|
528 |
# Correct base64 encoding and URL creation
|
529 |
image_base64 = base64.b64encode(get_image.content).decode("utf-8")
|
530 |
image_data_url = f"data:image/png;base64,{image_base64}"
|