Spaces:
Runtime error
Runtime error
oryx1729
commited on
Commit
•
a831acd
1
Parent(s):
ea67dd2
Fix api key
Browse files
app.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
import glob
|
|
|
2 |
import logging
|
3 |
import sys
|
4 |
|
@@ -25,6 +26,8 @@ def app_init():
|
|
25 |
# ds.update_embeddings(indexing_pipeline.get_node("Retriever"))
|
26 |
# ds.save(config_path="my_faiss_config.json", index_path="my_faiss_index.faiss")
|
27 |
|
|
|
|
|
28 |
global p_1
|
29 |
p_1 = Pipeline.load_from_yaml("pipeline.yaml", pipeline_name="query_1")
|
30 |
|
|
|
1 |
import glob
|
2 |
+
import os
|
3 |
import logging
|
4 |
import sys
|
5 |
|
|
|
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")
|
33 |
|