Update README.md
Browse files
README.md
CHANGED
@@ -30,8 +30,17 @@ TODO: Add your code
|
|
30 |
|
31 |
|
32 |
```python
|
33 |
-
|
|
|
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 |
```
|