Fix PushToHubCallback import in Share a model docs (#21457)
docs: update PushToHubCallback import in docs
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user