Skip to content

Commit

Permalink
Update current_scene value in ChatState
Browse files Browse the repository at this point in the history
  • Loading branch information
ArmykOliva committed Dec 4, 2023
1 parent 8fa9ecc commit 99dc30f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
class ChatState:
processing: bool = False #if openai is currently replying, dont allow new requests
current_state: str = "introduction" #current state of the conversation flow json
current_scene: str = "leonardo" #the current person to talk to = scene in unity that should be active
current_scene: str = "entity" #the current person to talk to = scene in unity that should be active
previous_scenes: list = field(default_factory=list) #a list of previous scenes the user has been to
user_msg: str = "" #the last message the user sent
ai_msg: str = "" #the last message the ai sent
Expand Down Expand Up @@ -333,4 +333,4 @@ def get_chat_history(unique_id: str):
if __name__ == "__main__":
#ts
port = os.environ.get("PORT",80)
uvicorn.run("main:app",host="0.0.0.0",port=port,reload=True)
uvicorn.run("main:app",host="0.0.0.0",port=port,reload=False)

0 comments on commit 99dc30f

Please sign in to comment.