WebShop icon indicating copy to clipboard operation
WebShop copied to clipboard

How to reset instruction?

Open xiaxiaxiatengxi opened this issue 6 months ago • 1 comments

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?

xiaxiaxiatengxi avatar Aug 09 '24 15:08 xiaxiaxiatengxi