timfe commited on
Commit
5d66f06
·
1 Parent(s): 1994eb7

changed API key

Browse files
Files changed (2) hide show
  1. .streamlit/secrets.toml +1 -1
  2. app.py +2 -2
.streamlit/secrets.toml CHANGED
@@ -1 +1 @@
1
- OPENAI_API_KEY = "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"
 
1
+ OPENAI_API_KEY = "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"
app.py CHANGED
@@ -14,7 +14,7 @@ from langchain_core.prompts import ChatPromptTemplate
14
  from langchain_community.document_loaders import UnstructuredFileLoader
15
 
16
  # OPENAI_API_KEY = st.secrets["OPENAI_API_KEY"]
17
- os.environ["OPENAI_API_KEY"] = "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"
18
  # Get all the filenames from the docs folder
19
  files = glob.glob("./docs/*.txt")
20
 
@@ -26,7 +26,7 @@ for file in files:
26
 
27
  # Config
28
  with st.sidebar:
29
- st.write(f"Injected documents: \n\n {"\n".join("\n"+file for file in files)}")
30
  model = st.selectbox("Model name", ["gpt-3.5-turbo"])
31
  temperature = st.number_input("Temperature", value=0.0, min_value=0.0, step=0.2, max_value=1.0, placeholder=0.0)
32
  if st.toggle("Splitting"):
 
14
  from langchain_community.document_loaders import UnstructuredFileLoader
15
 
16
  # OPENAI_API_KEY = st.secrets["OPENAI_API_KEY"]
17
+ os.environ["OPENAI_API_KEY"] = "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"
18
  # Get all the filenames from the docs folder
19
  files = glob.glob("./docs/*.txt")
20
 
 
26
 
27
  # Config
28
  with st.sidebar:
29
+ st.write(f"Injected documents: \n\n {'\n'.join('\n'+file for file in files)}")
30
  model = st.selectbox("Model name", ["gpt-3.5-turbo"])
31
  temperature = st.number_input("Temperature", value=0.0, min_value=0.0, step=0.2, max_value=1.0, placeholder=0.0)
32
  if st.toggle("Splitting"):