benedikt-schaber commited on
Commit
d07536d
1 Parent(s): 34c7ba6

Add usage code to README

Browse files
Files changed (1) hide show
  1. README.md +6 -5
README.md CHANGED
@@ -26,12 +26,13 @@ This is a trained model of a **PPO** agent playing **LunarLander-v2**
26
  using the [stable-baselines3 library](https://github.com/DLR-RM/stable-baselines3).
27
 
28
  ## Usage (with Stable-baselines3)
29
- TODO: Add your code
30
-
31
-
32
  ```python
33
- from stable_baselines3 import ...
34
  from huggingface_sb3 import load_from_hub
 
35
 
36
- ...
 
 
 
 
37
  ```
 
26
  using the [stable-baselines3 library](https://github.com/DLR-RM/stable-baselines3).
27
 
28
  ## Usage (with Stable-baselines3)
 
 
 
29
  ```python
 
30
  from huggingface_sb3 import load_from_hub
31
+ from stable_baselines3 import PPO
32
 
33
+ checkpoint = load_from_hub(
34
+ repo_id="benedikt-schaber/ppo-LunarLander-v2",
35
+ filename="ppo-LunarLander-v2.zip",
36
+ )
37
+ model = PPO.load(checkpoint)
38
  ```