From a650d911ea4e34a108566b1322e7f48cfad1acf8 Mon Sep 17 00:00:00 2001 From: Brandon Rozek Date: Wed, 5 Jun 2019 21:57:51 -0400 Subject: [PATCH] Updated README with usage instructions --- README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 09f29d8..951350e 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,16 @@ # HTTP interface for OpenAI Gym 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. \ No newline at end of file +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) +```