Update util.py
Browse files
util.py
CHANGED
|
@@ -12,7 +12,7 @@ def get_questions(file_path):
|
|
| 12 |
|
| 13 |
return result
|
| 14 |
|
| 15 |
-
get_img_b64(file_path):
|
| 16 |
with open(file_path, "rb") as file:
|
| 17 |
return base64.b64encode(file.read()).decode("utf-8")
|
| 18 |
|
|
|
|
| 12 |
|
| 13 |
return result
|
| 14 |
|
| 15 |
+
def get_img_b64(file_path):
|
| 16 |
with open(file_path, "rb") as file:
|
| 17 |
return base64.b64encode(file.read()).decode("utf-8")
|
| 18 |
|