Skip to content

Commit

Permalink
fix typo in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Wauplin committed Jun 11, 2024
1 parent fd947cd commit a24f7d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/en/guides/integrations.md
Original file line number Diff line number Diff line change
Expand Up @@ -399,8 +399,8 @@ from argparse import Namespace

class VoiceCraft(
nn.Module,
PytorchModelHubMixin, # inherit from mixin
coders: {
PyTorchModelHubMixin, # inherit from mixin
coders={
Namespace : (
lambda x: vars(x), # Encoder: how to convert a `Namespace` to a valid jsonable value?
lambda data: Namespace(**data), # Decoder: how to reconstruct a `Namespace` from a dictionary?
Expand Down

0 comments on commit a24f7d6

Please # to comment.