dmenini commited on
Commit
3f4ba23
·
1 Parent(s): 5d67913

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +8 -4
README.md CHANGED
@@ -26,10 +26,14 @@ model-index:
26
  ## Usage
27
 
28
  ```python
 
 
29
 
30
- model = load_from_hub(repo_id="dmenini/q-FrozenLake-v1-4x4-Slippery", filename="q-learning.pkl")
31
-
32
- # Don't forget to check if you need to add additional attributes (is_slippery=False etc)
33
- env = gym.make(model["env_id"])
 
 
34
  ```
35
 
 
26
  ## Usage
27
 
28
  ```python
29
+ import gym
30
+ from huggingface_sb3 import load_from_hub
31
 
32
+ model = load_from_hub(
33
+ repo_id="dmenini/q-FrozenLake-v1-4x4-Slippery",
34
+ filename="q-learning.pkl"
35
+ )
36
+
37
+ env = gym.make("FrozenLake-v1", map_name="4x4", is_slippery=True)
38
  ```
39