kz919 commited on
Commit
78f8e04
·
verified ·
1 Parent(s): 3da0a80

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -16,7 +16,11 @@ init_states()
16
  st.session_state.board_width = 400
17
 
18
  # Initialize the LLaMA 3.1 405B client
19
- llama_client = Client("xianbao/SambaNova-fast")
 
 
 
 
20
 
21
  # Initialize all session state variables
22
  if 'player_color' not in st.session_state:
 
16
  st.session_state.board_width = 400
17
 
18
  # Initialize the LLaMA 3.1 405B client
19
+ if "llama_client" not in st.session_state:
20
+ llama_client = Client("xianbao/SambaNova-fast")
21
+ st.session_state.llama_client = llama_client
22
+ else:
23
+ llama_client = st.session_state.llama_client
24
 
25
  # Initialize all session state variables
26
  if 'player_color' not in st.session_state: