Deepakkori45 commited on
Commit
149a740
·
verified ·
1 Parent(s): 8082c5f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -14,8 +14,8 @@ load_dotenv()
14
  OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
15
 
16
  client = OpenAI(api_key=OPENAI_API_KEY)
17
- # vector_store_id = "vs_sKMCttYADkAPHiNLfYjnI99Y" # Vector Store ID to use
18
- vector_store_id = os.getenv("VECTOR_STORE_ID") # Vector Store ID to use
19
  # all_files = list(client.beta.vector_stores.files.list(vector_store_id))
20
  # for file in all_files:
21
  # # print(file)
@@ -23,8 +23,8 @@ vector_store_id = os.getenv("VECTOR_STORE_ID") # Vector Store ID to use
23
  # st.write(file_id)
24
 
25
  # Set the assistant ID
26
- # assistant_id = "asst_PytLeS8CwhZiswnc11HCsmbO" # Replace with your own assistant ID
27
- assistant_id = os.getenv("ASSISTANT_ID") # Replace with your own assistant ID
28
 
29
  def ensure_single_thread_id():
30
  if "thread_id" not in st.session_state:
 
14
  OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
15
 
16
  client = OpenAI(api_key=OPENAI_API_KEY)
17
+ vector_store_id = "vs_sKMCttYADkAPHiNLfYjnI99Y" # Vector Store ID to use
18
+ # vector_store_id = os.getenv("VECTOR_STORE_ID") # Vector Store ID to use
19
  # all_files = list(client.beta.vector_stores.files.list(vector_store_id))
20
  # for file in all_files:
21
  # # print(file)
 
23
  # st.write(file_id)
24
 
25
  # Set the assistant ID
26
+ assistant_id = "asst_PytLeS8CwhZiswnc11HCsmbO" # Replace with your own assistant ID
27
+ # assistant_id = os.getenv("ASSISTANT_ID") # Replace with your own assistant ID
28
 
29
  def ensure_single_thread_id():
30
  if "thread_id" not in st.session_state: