oryx1729 commited on
Commit
2e9668f
1 Parent(s): a831acd
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -26,7 +26,7 @@ def app_init():
26
  # ds.update_embeddings(indexing_pipeline.get_node("Retriever"))
27
  # ds.save(config_path="my_faiss_config.json", index_path="my_faiss_index.faiss")
28
 
29
- os.environ["OPENAI_API_KEY"] = st.session_state.get("OPENAI_API_KEY")
30
 
31
  global p_1
32
  p_1 = Pipeline.load_from_yaml("pipeline.yaml", pipeline_name="query_1")
 
26
  # ds.update_embeddings(indexing_pipeline.get_node("Retriever"))
27
  # ds.save(config_path="my_faiss_config.json", index_path="my_faiss_index.faiss")
28
 
29
+ os.environ["OPENAI_API_KEY"] = st.secrets["OPENAI_API_KEY"]
30
 
31
  global p_1
32
  p_1 = Pipeline.load_from_yaml("pipeline.yaml", pipeline_name="query_1")