Chris Alexiuk commited on
Commit
59f6580
·
1 Parent(s): 5069dde

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -4
app.py CHANGED
@@ -51,15 +51,12 @@ async def start_chat():
51
  ]
52
  ).send()
53
 
54
- cl.user_session("settings", settings)
55
-
56
  @cl.on_settings_update # marks a function that "logs" settings update
57
  async def setup_agent(settings):
58
  print("on_settings_update", settings)
59
 
60
  @cl.on_message # marks a function that should be run each time the chatbot receives a message from a user
61
  async def main(message: str):
62
- settings = cl.user_session.get("settings")
63
 
64
  prompt = Prompt(
65
  provider=ChatOpenAI.id,
@@ -74,7 +71,6 @@ async def main(message: str):
74
  formatted=template.format(input=message)
75
  )
76
  ],
77
- settings = settings,
78
  inputs = {"input" : message}
79
  )
80
 
 
51
  ]
52
  ).send()
53
 
 
 
54
  @cl.on_settings_update # marks a function that "logs" settings update
55
  async def setup_agent(settings):
56
  print("on_settings_update", settings)
57
 
58
  @cl.on_message # marks a function that should be run each time the chatbot receives a message from a user
59
  async def main(message: str):
 
60
 
61
  prompt = Prompt(
62
  provider=ChatOpenAI.id,
 
71
  formatted=template.format(input=message)
72
  )
73
  ],
 
74
  inputs = {"input" : message}
75
  )
76