app file
Browse files- transcript.py +2 -2
transcript.py
CHANGED
@@ -110,8 +110,8 @@ def convertToJSON(dsl):
|
|
110 |
# open image and convert it to base64 image
|
111 |
with open(workdir+image, 'rb') as open_file:
|
112 |
byte_content = open_file.read()
|
113 |
-
|
114 |
-
|
115 |
|
116 |
sentence = val
|
117 |
row = '{"image_id": "'+str(cnt)+'",'
|
|
|
110 |
# open image and convert it to base64 image
|
111 |
with open(workdir+image, 'rb') as open_file:
|
112 |
byte_content = open_file.read()
|
113 |
+
base64_bytes = base64.b64encode(byte_content)
|
114 |
+
base64_string = base64_bytes.decode('utf-8')
|
115 |
|
116 |
sentence = val
|
117 |
row = '{"image_id": "'+str(cnt)+'",'
|