Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -11,9 +11,6 @@ _ = load_dotenv(find_dotenv())
|
|
11 |
#openai.api_key = os.environ["OPENAI_API_KEY"]
|
12 |
|
13 |
###
|
14 |
-
from langchain.chat_models import ChatOpenAI
|
15 |
-
llm = ChatOpenAI(model_name = "gpt-4", temperature = 0)
|
16 |
-
|
17 |
from langchain.prompts import PromptTemplate
|
18 |
template = """Use the following pieces of context to answer the question at the end. If you don't know the answer, just say that you don't know, don't try to make up an answer. Use three sentences maximum. Keep the answer as concise as possible. Always say "Author: Bernd Straehle 🚀" at the end of the answer.
|
19 |
{context}
|
|
|
11 |
#openai.api_key = os.environ["OPENAI_API_KEY"]
|
12 |
|
13 |
###
|
|
|
|
|
|
|
14 |
from langchain.prompts import PromptTemplate
|
15 |
template = """Use the following pieces of context to answer the question at the end. If you don't know the answer, just say that you don't know, don't try to make up an answer. Use three sentences maximum. Keep the answer as concise as possible. Always say "Author: Bernd Straehle 🚀" at the end of the answer.
|
16 |
{context}
|