mesutt commited on
Commit
c44f8bb
1 Parent(s): 6fe3f46

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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