joonspk-research / generative_agents

Generative Agents: Interactive Simulacra of Human Behavior
Apache License 2.0
17.48k stars 2.26k forks source link

'Please start the backend first' when backend is started. #97

Open alric05 opened 1 year ago

alric05 commented 1 year ago

I see the message Please start the backend first' when backend is started. Steps:

When i visit localhost:8000/simulator_home, i see the map and list of agents correctly ONLY the first time it loads. Then, if i refresh the page i see the message 'Please start the backend first', eventhough i see that actions are being generated like 'prepare valentines day'... after run 10.

Running on mac os. All correctly installed.

bswaterb commented 1 year ago

Taking the execution of the world template base_the_ville_isabella_maria_klaus as an example, in the command line, you need to start by using the run [steps] command.

This command will first make around 70 GPT requests to initialize the daily plans of various game characters. Once the initialization is complete, the command-line interface will stop generating new content.

At this point, you can use the arrow keys on the keyboard in the frontend page to control the map display area. The game world will officially start running when the user's view area is moved.

TommyZihao commented 1 year ago

This bug only happens when you run for the first time. To fix this bug, just need to close all terminal, and restart from the python manage.py runserver.

myrainbowandsky commented 1 year ago

have you resolved it?

night-fury-web commented 11 months ago

https://github.com/joonspk-research/generative_agents/blob/fe05a71d3e4ed7d10bf68aa4eda6dd995ec070f4/environment/frontend_server/translator/views.py#L120

It's because of this line. What is this for?

hcascavita1 commented 9 months ago

@alric05 Where you able to figure out the problem? I'm having the same issues at the moments