Skip to content

Commit

Permalink
Docs/SK-1220 | Fix readme syntax in server functions (#757)
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorvaladi authored Nov 19, 2024
1 parent 3e1dcd7 commit c1b8215
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion examples/server-functions/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,21 @@ Full commands to run through the API client:
Get your token from the settings page in your studio project and add it in your system environment.

.. code-block::
export FEDN_AUTH_TOKEN=<access token>
Connect through the APIClient from a python instance, you can find your controller host on the studio Dashboard page.

.. code-block::
from fedn import APIClient
client = APIClient(host="<controller-host>", secure=True, verify=True)
Start a session with your ServerFunctions code (assuming you have uploaded a model seed, compute package and have connected clients).

.. code-block::
from server_functions import ServerFunctions
client.start_session(server_functions=ServerFunctions)
client.start_session(server_functions=ServerFunctions)
Logs from the server functions code are visible from the studio dashboard logs page.

0 comments on commit c1b8215

Please sign in to comment.