dmenini commited on
Commit
d6d558c
·
1 Parent(s): 60965b4

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +11 -2
README.md CHANGED
@@ -30,8 +30,17 @@ TODO: Add your code
30
 
31
 
32
  ```python
33
- from stable_baselines3 import ...
 
34
  from huggingface_sb3 import load_from_hub
35
 
36
- ...
 
 
 
 
 
 
 
 
37
  ```
 
30
 
31
 
32
  ```python
33
+ import gym
34
+ from stable_baselines3 import PPO
35
  from huggingface_sb3 import load_from_hub
36
 
37
+ checkpoint = load_from_hub(
38
+ repo_id="dmenini/ppo-LunarLander-v2",
39
+ filename="ppo-LunarLander-v2.zip"
40
+ )
41
+
42
+ model = PPO.load(checkpoint)
43
+
44
+ env = gym.make("LunarLander-v2")
45
+
46
  ```