Waflon commited on
Commit
bfc91a3
1 Parent(s): 21403be

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -3,10 +3,10 @@ import streamlit as st
3
  import getpass
4
  import os
5
 
6
- os.environ["OPENAI_API_KEY"] = OPENAI_API_KEY # agregada en la config de hugginface
7
 
8
  os.environ["LANGCHAIN_TRACING_V2"] = "true"
9
- os.environ["LANGCHAIN_API_KEY"] = OPENAI_API_KEY
10
 
11
 
12
  from langchain.prompts import PromptTemplate
 
3
  import getpass
4
  import os
5
 
6
+ os.environ["OPENAI_API_KEY"] = st.secrets['OPENAI_API_KEY'] # agregada en la config de hugginface
7
 
8
  os.environ["LANGCHAIN_TRACING_V2"] = "true"
9
+ os.environ["LANGCHAIN_API_KEY"] = st.secrets['OPENAI_API_KEY']
10
 
11
 
12
  from langchain.prompts import PromptTemplate