Updated README with usage instructions
This commit is contained in:
parent
c38ccbfe8e
commit
a650d911ea
1 changed files with 13 additions and 1 deletions
12
README.md
12
README.md
|
@ -2,3 +2,15 @@
|
||||||
This library adds a HTTP interface for the [OpenAI Gym Project](https://github.com/openai/gym). Hopefully you will be able to use it in your reinforcement learning projects without noticing!
|
This library adds a HTTP interface for the [OpenAI Gym Project](https://github.com/openai/gym). Hopefully you will be able to use it in your reinforcement learning projects without noticing!
|
||||||
|
|
||||||
Why would I want to do this? If you want to decouple the processing of the environment from the training of your models this might be beneficial.
|
Why would I want to do this? If you want to decouple the processing of the environment from the training of your models this might be beneficial.
|
||||||
|
|
||||||
|
To start the webserver
|
||||||
|
```bash
|
||||||
|
export FLASK_APP=gymserver.py
|
||||||
|
flask run
|
||||||
|
```
|
||||||
|
|
||||||
|
In your main application
|
||||||
|
```python
|
||||||
|
from gymclient import Environment
|
||||||
|
env = Environment("127.0.0.1", 5000)
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in a new issue