Hi!
I’ve gone throught the first part of the tutorial but I can’t seem to get package_to_hub working:
package_to_hub(model=model, # Our trained model
model_name=model_name, # The name of our trained model
model_architecture=model_architecture, # The model architecture we used: in our case PPO
env_id=env_id, # Name of the environment
eval_env=eval_env, # Evaluation Environment
repo_id=repo_id, # id of the model repository from the Hugging Face Hub (repo_id = {organization}/{repo_name} for instance ThomasSimonini/ppo-LunarLander-v2
commit_message="Test to avoid error",)
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-14-c506e4a1707f> in <module>()
37 eval_env=eval_env, # Evaluation Environment
38 repo_id=repo_id, # id of the model repository from the Hugging Face Hub (repo_id = {organization}/{repo_name} for instance ThomasSimonini/ppo-LunarLander-v2
---> 39 commit_message="Test to avoid error",)
9 frames
/usr/local/lib/python3.7/dist-packages/pyglet/gl/__init__.py in <module>()
233 elif compat_platform == 'darwin':
234 from .cocoa import CocoaConfig as Config
--> 235 del base # noqa: F821
236
237
NameError: name 'base' is not defined