Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/SK-1220 | Fix readme syntax #757

Merged
merged 2 commits into from
Nov 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Loading