Skip to content

Commit

Permalink
Auto-update of NLP template
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jan 9, 2025
1 parent eb96d95 commit 9542ed8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 3 additions & 1 deletion examples/e2e_nlp/steps/deploying/huggingface_deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ def deploy_to_huggingface(
"""
### ADD YOUR OWN CODE HERE - THIS IS JUST AN EXAMPLE ###
secret = Client().get_secret("huggingface_creds")
assert secret, "No secret found with name 'huggingface_creds'. Please create one that includes your `username` and `token`."
assert secret, (
"No secret found with name 'huggingface_creds'. Please create one that includes your `username` and `token`."
)
token = secret.secret_values["token"]
api = HfApi(token=token)
hf_repo = api.create_repo(
Expand Down
10 changes: 4 additions & 6 deletions examples/e2e_nlp/steps/promotion/promote_get_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,10 @@


@step
def promote_get_metrics() -> (
Tuple[
Annotated[Dict[str, Any], "latest_metrics"],
Annotated[Dict[str, Any], "current_metrics`"],
]
):
def promote_get_metrics() -> Tuple[
Annotated[Dict[str, Any], "latest_metrics"],
Annotated[Dict[str, Any], "current_metrics`"],
]:
"""Get metrics for comparison for promoting a model.
This is an example of a metric retrieval step. It is used to retrieve
Expand Down

0 comments on commit 9542ed8

Please sign in to comment.