Spaces:
Sleeping
Sleeping
File size: 418 Bytes
1b64cba | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | from tasks.easy import create_easy_task
from app.env import WorkflowEnv
from app.actions import Action
state, gt = create_easy_task()
env = WorkflowEnv(state)
obs = env.reset()
print("Initial:", obs)
# Try correct classify
action = Action(
type="classify",
target_id="1",
payload={"label": "meeting_request"}
)
obs, reward, done, _ = env.step(action)
print("After step:", obs)
print("Reward:", reward) |