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 @@ Share a model to the Hub with [`PushToHubCallback`]. In the [`PushToHubCallback`
- The `hub_model_id`, which is your Hub username and model name.
```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"