Spaces:
Runtime error
Runtime error
update
Browse files
main.py
CHANGED
|
@@ -11,13 +11,13 @@ app = FastAPI()
|
|
| 11 |
async def root():
|
| 12 |
images = []
|
| 13 |
|
| 14 |
-
with open('
|
| 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('
|
| 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')
|