Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/TencentQQGYLab/AppAgent
/ encode_image
Function
encode_image
scripts/utils.py:98–100 ·
view source on GitHub ↗
(image_path)
Source
from the content-addressed store, hash-verified
96
97
98
def
encode_image(image_path):
99
with
open(image_path,
"rb"
)
as
image_file:
100
return
base64.b64encode(image_file.read()).decode(
'utf-8'
)
Callers
1
get_model_response
Method · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected