Entz commited on
Commit
8892010
·
verified ·
1 Parent(s): 48a0e7a

Upload 2 files

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -94,6 +94,7 @@ client, model, display_model = setup_client(selected_provider)
94
  if client is None:
95
  st.stop()
96
 
 
97
  # Initialize or update the agent
98
  st.session_state.display_model = display_model
99
  if "agent" not in st.session_state or st.session_state.get("current_model") != model:
@@ -106,11 +107,9 @@ if "agent" not in st.session_state or st.session_state.get("current_model") != m
106
  client=client,
107
  model=model,
108
  system_prompt_generator=system_prompt_generator,
109
- memory ~
110
-
111
- =st.session_state.memory,
112
- system_role="developer",
113
- ))
114
  st.session_state.current_model = model # Track the current model to detect changes
115
 
116
  # Display the selected model
 
94
  if client is None:
95
  st.stop()
96
 
97
+ # Initialize or update the agent
98
  # Initialize or update the agent
99
  st.session_state.display_model = display_model
100
  if "agent" not in st.session_state or st.session_state.get("current_model") != model:
 
107
  client=client,
108
  model=model,
109
  system_prompt_generator=system_prompt_generator,
110
+ memory=st.session_state.memory,
111
+ system_role="developer"
112
+ )) # All arguments as keyword arguments
 
 
113
  st.session_state.current_model = model # Track the current model to detect changes
114
 
115
  # Display the selected model