Spaces:
Sleeping
Sleeping
Update setup_code.py
Browse files36 unmodified lines37383940414243444536 unmodified lines# GETTING OpenAI and Pinecone api keyOPENAI_KEY = st.secrets['OPENAI_KEY']openai.api_key = OPENAI_KEYpc_apikey = st.secrets['pc_apikey']openai_client = OpenAI(api_key=openai.api_key)# Function to get the embeddings of the text using OpenAI text-embedding-ada-002 model36 unmodified lines373839404142434445464736 unmodified lines# GETTING OpenAI and Pinecone api keyOPENAI_KEY = st.secrets['OPENAI_KEY']openai.api_key = OPENAI_KEYpc_apikey = st.secrets['pc_apikey']print(OPENAI_KEY)openai_client = OpenAI(api_key=openai.api_key)# Function to get the embeddings of the text using OpenAI text-embedding-ada-002 model
setup_code.py+3-1