Add OpenAI API
Browse files8 unmodified lines91011121314151617188 unmodified linesfrom langchain.chains import LLMChainimport textwrapimport streamlit as stfrom apikey import apikey# Load OpenAI API key and define directory to store the dataos.environ["OPENAI_API_KEY"] = apikeypersist_directory = "../../data/processed"# Load the OpenAI Embeddings, LLM , PromptTemplate and LLMChain8 unmodified lines91011121314151617188 unmodified linesfrom langchain.chains import LLMChainimport textwrapimport streamlit as st# Load OpenAI API key and define directory to store the datapersist_directory = "../../data/processed"# Load the OpenAI Embeddings, LLM , PromptTemplate and LLMChain
app.py+2-2