-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use FednClient API instead of compute package
- Loading branch information
1 parent
4a7466b
commit b50c394
Showing
2 changed files
with
111 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
from config import settings | ||
from fedn import APIClient | ||
|
||
DISCOVER_HOST = "127.0.0.1" | ||
DISCOVER_PORT = 8092 | ||
client = APIClient( | ||
host=settings["DISCOVER_HOST"], | ||
port=settings["DISCOVER_PORT"], | ||
secure=settings["SECURE"], | ||
verify=settings["VERIFY"], | ||
token=settings["ADMIN_TOKEN"], | ||
) | ||
|
||
client = APIClient(DISCOVER_HOST, DISCOVER_PORT) | ||
client.set_active_package("package.tgz", "numpyhelper") | ||
client.set_active_model("seed.npz") | ||
result = client.set_active_model("seed.npz") | ||
print(result["message"]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters