joonspk-research / generative_agents

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

The characters on the screen do not move. #18

Closed hansun11 closed 1 year ago

hansun11 commented 1 year ago

In the termin, I can see the character's actions, but they are not reflected in the screen:http://localhost:8000/simulator_home. And also the Replaying. The demo can run perfectly.

screen
tscherrie commented 1 year ago

have the same problem and reloading the browser window shows Please start the backend first. which is running without errors

Mrxyx commented 1 year ago

same problem

camilosolanoa commented 1 year ago

same problem

frankcarey commented 1 year ago

So there are currently issues with the backend server you'll need to fix to get it working, but even a single step can take a good 60+ seconds with the 3 character base because openAI is used so much in a sequential manner. During this time (before a movement/N.json file is created) the character isn't going to do anything until eventually the step completes, the movement file is created for that step, and the frontend picks that up, which is confusing for sure. Once that completes though, the time will update and you will see the characters like so..

image

UPDATE: Looks like if the initial starting of a simulation can take a while.. probably the daily planning and other bootstrapping perhaps, but then the characters are sleeping and during that time, they aren't using GPT? I've made a ticket to have characters start in the morning so you aren't waiting so long to see if something is happening too..

https://github.com/joonspk-research/generative_agents/issues/26

frankcarey commented 1 year ago

Please start the backend first. which is running without errors

Yeah, see the ticket for this.. basically you can't refresh the page or look at character details right now or the frontend will break for some reason.

changeling commented 1 year ago

@frankcarey Could you link to that ticket?

edom18 commented 1 year ago

I found out why this problem was occurred. reverie.py didn't check and create movement folder in process. I fixed this problem by #55 .

mberman84 commented 1 year ago

Even with the movement folder issue fixed, the simulation completed successfully but replaying it does nothing.

However, when I try to replay one of the example simulations provided with the repo, it works perfectly.