Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to reset instruction? #37

Open
xiaxiaxiatengxi opened this issue Aug 9, 2024 · 1 comment
Open

How to reset instruction? #37

xiaxiaxiatengxi opened this issue Aug 9, 2024 · 1 comment

Comments

@xiaxiaxiatengxi
Copy link

xiaxiaxiatengxi commented Aug 9, 2024

I'm submitting a question

env = gym.make('WebAgentTextEnv-v0', observation_mode='text_rich', num_products=DEBUG_PROD_SIZE)

0 round:
env.reset()
my url is:
'http://127.0.0.1:3000/ihjvksdtfm'
env.get_instruction_text()
i get "Instruction: Find me machine wash men's dress shirts with cotton spandex, classic fit, short sleeve with color: white, and size: x-large tall, and price lower than 60.00 dollars"

when i finish this task, i run env.reset()
my url is
'http://127.0.0.1:3000/ayfoedaown'
1 round:
env.get_instruction_text()
i get anthor instruction:
"Instruction: Find me slim fit, machine wash women's jumpsuits, rompers & overalls with short sleeve, high waist, polyester spandex for daily wear with color: green stripe, and size: large, and price lower than 50.00 dollars"

but i want back to 0 round, when is use env.reset(instruction_text="Instruction: Find me machine wash men's dress shirts with cotton spandex, classic fit, short sleeve with color: white, and size: x-large tall, and price lower than 60.00 dollars")
env.get_instruction_text()
i doesn't get the old instruction, otherwise i get a new instruction!

what should i do?

@ysymyth
Copy link
Member

ysymyth commented Aug 28, 2024

sorry i'm not sure if i follow. do you want to reset the env to always the same instruction?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants