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/refs%2Fpr%2F3/test_env.py
- Command line
-
hf download hf://spaces/Meta-Hackathon1/Customer_Support_Env@refs/pr/3/test_env.py
-
curl -L -o test_env.py https://huggingface.co/spaces/Meta-Hackathon1/Customer_Support_Env/resolve/refs%2Fpr%2F3/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) |