Update README.md
Browse files
README.md
CHANGED
@@ -26,10 +26,14 @@ model-index:
|
|
26 |
## Usage
|
27 |
|
28 |
```python
|
|
|
|
|
29 |
|
30 |
-
model = load_from_hub(
|
31 |
-
|
32 |
-
|
33 |
-
|
|
|
|
|
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 |
|