mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-16 06:53:47 +00:00
comments
This commit is contained in:
parent
5e1323b5bf
commit
d8bbce6f7c
2 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,6 @@ def data_url_from_file(file_path: str) -> str:
|
|||
|
||||
base64_content = base64.b64encode(file_content).decode("utf-8")
|
||||
mime_type, _ = mimetypes.guess_type(file_path)
|
||||
print(mime_type)
|
||||
|
||||
data_url = f"data:{mime_type};base64,{base64_content}"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue