samlonka commited on
Commit
b225a1d
1 Parent(s): 9022c55

'modified'

Browse files
Files changed (2) hide show
  1. app.py +3 -2
  2. requirements.txt +0 -1
app.py CHANGED
@@ -31,12 +31,13 @@ st.write("All secrets:", all_secrets)
31
  # Access the specific secret
32
  try:
33
  openai_api_key = st.secrets["OPENAI_APIKEY_CS"]
34
- st.write("OpenAI API Key:", openai_api_key)
 
35
  except KeyError as e:
36
  st.error(f"KeyError: {e}")
37
  #load keys
38
  #openai_api_key = st.secrets["OPENAI_APIKEY_CS"]
39
- pinecone_api_key = st.secrets["PINECONE_API_KEY_SAM"]
40
 
41
  #llm
42
  llm_AI4 = OpenAI(temperature=0, model="gpt-4-1106-preview",api_key=openai_api_key, max_tokens=512)
 
31
  # Access the specific secret
32
  try:
33
  openai_api_key = st.secrets["OPENAI_APIKEY_CS"]
34
+ pinecone_api_key = st.secrets["PINECONE_API_KEY_SAM"]
35
+ #st.write("OpenAI API Key:", openai_api_key)
36
  except KeyError as e:
37
  st.error(f"KeyError: {e}")
38
  #load keys
39
  #openai_api_key = st.secrets["OPENAI_APIKEY_CS"]
40
+ #pinecone_api_key = st.secrets["PINECONE_API_KEY_SAM"]
41
 
42
  #llm
43
  llm_AI4 = OpenAI(temperature=0, model="gpt-4-1106-preview",api_key=openai_api_key, max_tokens=512)
requirements.txt CHANGED
@@ -1,4 +1,3 @@
1
- python==3.9.13
2
  openai==1.12.0
3
  sentence_transformers==2.4.0
4
  llama_index==0.10.4
 
 
1
  openai==1.12.0
2
  sentence_transformers==2.4.0
3
  llama_index==0.10.4