Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,10 @@ def t2i(text):
|
|
15 |
image = Image.open('image.png')
|
16 |
return image
|
17 |
|
18 |
-
|
|
|
|
|
|
|
19 |
|
20 |
allow_flagging = "never"
|
21 |
|
|
|
15 |
image = Image.open('image.png')
|
16 |
return image
|
17 |
|
18 |
+
# Read the image file and encode it as base64
|
19 |
+
with open("./1001epochs.png", "rb") as f:
|
20 |
+
image_data = f.read()
|
21 |
+
image_base64 = base64.b64encode(image_data).decode("utf-8")
|
22 |
|
23 |
allow_flagging = "never"
|
24 |
|