Skip to content
Open
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@ def go(args):

logger.info("Creating run exercise_1")

# Create a W&B run in the project ``exercise_1``. Set the option ``job_type="upload_file"``:
# Create a W&B run in the project `exercise_1`. Set the option `job_type="upload_file"`:

# YOUR CODE HERE

# Create an instance of the class ``wandb.Artifact``. Use the ``artifact_name`` parameter to fill
# the keyword ``name`` when constructing the wandb.Artifact class.
# Use the parameters ``artifact_type`` and ``artifact_desc`` to fill respectively the keyword
# ``type`` and ``description``
# Create an instance of the class `wandb.Artifact`. Use the `artifact_name` parameter to
# fill the keyword `name` when constructing the `wandb.Artifact` class. Use the parameters
# `artifact_type` and `artifact_description` to fill respectively the keyword `type` and
# `description`.
# HINT: you can use args.artifact_name to reference the parameter artifact_name

# YOUR CODE HERE

# Attach the file provided as the parameter ``input_file`` to the artifact instance using
# ``artifact.add_file``, and log the artifact to the run using ``run.log_artifact``.
# Attach the file provided as the parameter `input_file` to the artifact instance using
# `artifact.add_file`, and log the artifact to the run using `run.log_artifact`.

# YOUR CODE HERE

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ def go(args):

logger.info("Getting artifact")

# YOUR CODE HERE: get the artifact and store its local path in the variable "artifact_path"
# HINT: you can get the artifact path by using the "file()" method
# YOUR CODE HERE: get the artifact and store its local path in the variable `artifact_path`
# HINT: you can get the artifact path by using the `file()` method

# YOUR CODE HERE

artifact_path = artifact.file()

Expand Down
Loading