Fix PushToHubCallback import in Share a model docs (#21457)

docs: update PushToHubCallback import in docs
This commit is contained in:
Irene López
2023-02-06 14:26:22 +00:00
committed by GitHub
parent 5ac1c7ea85
commit 7dbee87e09
4 changed files with 4 additions and 4 deletions

View File

@@ -146,7 +146,7 @@ Geben Sie ein Modell mit [`PushToHubCallback`] an den Hub weiter. In der [`PushT
- Die `hub_model_id`, die Ihr Hub-Benutzername und Modellname ist.
```py
>>> from transformers.keras.callbacks import PushToHubCallback
>>> from transformers import PushToHubCallback
>>> push_to_hub_callback = PushToHubCallback(
... output_dir="./your_model_save_path", tokenizer=tokenizer, hub_model_id="your-username/my-awesome-model"