wldmr commited on
Commit
1455a7c
·
1 Parent(s): d65fa69
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -11,13 +11,13 @@ app = FastAPI()
11
  async def root():
12
  images = []
13
 
14
- with open('image1.jpg', 'rb') as open_file:
15
  byte_content = open_file.read()
16
  base64_bytes = base64.b64encode(byte_content)
17
  base64_string = base64_bytes.decode('utf-8')
18
  images.append(base64_string)
19
 
20
- with open('image2.jpg', 'rb') as open_file:
21
  byte_content = open_file.read()
22
  base64_bytes = base64.b64encode(byte_content)
23
  base64_string = base64_bytes.decode('utf-8')
 
11
  async def root():
12
  images = []
13
 
14
+ with open('workdir/lion.jpg', 'rb') as open_file:
15
  byte_content = open_file.read()
16
  base64_bytes = base64.b64encode(byte_content)
17
  base64_string = base64_bytes.decode('utf-8')
18
  images.append(base64_string)
19
 
20
+ with open('workdir/cheetah.jpg', 'rb') as open_file:
21
  byte_content = open_file.read()
22
  base64_bytes = base64.b64encode(byte_content)
23
  base64_string = base64_bytes.decode('utf-8')