encord-ssh-key
(you can choose the name but it needs to match the name in the code below)ENCORD_SSH_KEY
with the content of your private ssh key file. Similar to the figure below.encord-agents
to authenticate with Encord using the provided key.
encord-agents
and modal
:
encord-agents
: The library for building agentsmodal
: For hosting the agentlibgl
: Required by opencv
ENCORD_SSH_KEY
.encord-agents
automatically detects this key and use it to authenticate with the Encord SDK.encord_agents.fastapi.dependencies
to simplify your setup.
encord_agents
library sends a 200 response to the Label Editor, causing the editor to refresh its state. The result is a sphere in the middle of the image.
example.py
, you can run:
<agent_url>
.
Now, go to the Encord Label Editor in your browser, viewing an asset for which you would like to test your agent.
Copy the url; let’s call it <editor_url>
.
It should follow this pattern:
<agent_url>
and the <editor_url>
with the relevant urls.
You should see a green box detaining the request and the response.
If the status code is 200, refresh your browser to see the new bitmask in the Label Editor.