bstraehle commited on
Commit
752918c
·
1 Parent(s): d8934b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -12,11 +12,11 @@ _ = load_dotenv(find_dotenv())
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}
17
  Question: {question}
18
  Helpful Answer:"""
19
- QA_CHAIN_PROMPT = PromptTemplate(input_variables = ["context", "question"], template = template, )
20
  ###
21
 
22
  def invoke(openai_api_key, youtube_url, prompt):
 
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 "Thanks, Bernd Straehle 🚀" at the end of the answer.
16
  {context}
17
  Question: {question}
18
  Helpful Answer:"""
19
+ QA_CHAIN_PROMPT = PromptTemplate(input_variables = ["context", "question"], template = template)
20
  ###
21
 
22
  def invoke(openai_api_key, youtube_url, prompt):