Skip to content

Commit

Permalink
Update README.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorvaladi authored Nov 19, 2024
1 parent 3e1dcd7 commit 9b54834
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/server-functions/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,19 @@ 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)

0 comments on commit 9b54834

Please sign in to comment.