mzozulia commited on
Commit
9bb6f16
·
verified ·
1 Parent(s): b41424b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -16,7 +16,7 @@ ps.set_page_overview("Overview", "**Legal Assistant** provides a way to quickly
16
 
17
  #2. Variable Setup
18
 
19
- openai.api_key = st.secrets.openai.api_key
20
  assistant = st.secrets.openai.assistant_key
21
  model = "gpt-4-1106-preview"
22
  client = OpenAI(api_key=st.secrets.openai.api_key)
@@ -39,7 +39,7 @@ if "assistant" not in st.session_state:
39
  openai.api_key = st.secrets.openai.api_key
40
 
41
  # Load the previously created assistant
42
- st.session_state.assistant = openai.beta.assistants.retrieve(st.secrets.openai.assistant_key)
43
 
44
  # Create a new thread for this session
45
  st.session_state.thread = client.beta.threads.create(
 
16
 
17
  #2. Variable Setup
18
 
19
+
20
  assistant = st.secrets.openai.assistant_key
21
  model = "gpt-4-1106-preview"
22
  client = OpenAI(api_key=st.secrets.openai.api_key)
 
39
  openai.api_key = st.secrets.openai.api_key
40
 
41
  # Load the previously created assistant
42
+ st.session_state.assistant = client.beta.assistants.retrieve(st.secrets.openai.assistant_key)
43
 
44
  # Create a new thread for this session
45
  st.session_state.thread = client.beta.threads.create(