princeton-nlp / WebShop

[NeurIPS 2022] 🛒WebShop: Towards Scalable Real-World Web Interaction with Grounded Language Agents
https://webshop-pnlp.github.io
MIT License
268 stars 56 forks source link

How to reset instruction? #37

Open xiaxiaxiatengxi opened 2 months ago

xiaxiaxiatengxi commented 2 months ago

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 commented 2 months ago

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