Download test_env.py from Meta-Hackathon1/Customer_Support_Env: direct link, hf CLI and curl.
- Browser
- Download file 338 Bytes
-
https://huggingface.co/spaces/Meta-Hackathon1/Customer_Support_Env/resolve/07792e427febbe8bfb8a5879110e6dcf5a71d16d/test_env.py
- Command line
-
hf download hf://spaces/Meta-Hackathon1/Customer_Support_Env@07792e427febbe8bfb8a5879110e6dcf5a71d16d/test_env.py
-
curl -L -o test_env.py https://huggingface.co/spaces/Meta-Hackathon1/Customer_Support_Env/resolve/07792e427febbe8bfb8a5879110e6dcf5a71d16d/test_env.py
338 Bytes
| from environment import SupportEnv | |
| from dataset import cases # your dataset file | |
| env = SupportEnv(cases) | |
| obs = env.reset() | |
| done = False | |
| while not done: | |
| print(obs) | |
| action = input("Enter action: ") # simulate agent | |
| obs, reward, done = env.step(action) | |
| print(f"Reward: {reward}") | |
| print("-" * 40) |