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

feat(framework) Add additional user prompt for flowertune template in flwr new #3760

Merged
merged 2 commits into from
Jul 10, 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
4 changes: 3 additions & 1 deletion src/py/flwr/cli/new/new.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,11 @@ def new(
bold=True,
)
)

_add = " huggingface-cli login\n" if framework_str == "flowertune" else ""
print(
typer.style(
f" cd {package_name}\n" + " pip install -e .\n flwr run\n",
f" cd {package_name}\n" + " pip install -e .\n" + _add + " flwr run\n",
fg=typer.colors.BRIGHT_CYAN,
bold=True,
)
Expand Down