Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|