Chandranshu Jain commited on
Commit
77ee048
1 Parent(s): 39640cd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -57,7 +57,7 @@ def get_conversational_chain():
57
 
58
  Answer:
59
  """
60
- model = ChatGoogleGenerativeAI(model="gemini-pro", temperature=0.3, google_api_key=api_key)
61
  prompt = PromptTemplate(template=prompt_template, input_variables=["context", "question"])
62
  chain = load_qa_chain(model, chain_type="stuff", prompt=prompt)
63
  return chain
 
57
 
58
  Answer:
59
  """
60
+ model = ChatGoogleGenerativeAI(model="gemini-pro", temperature=0.3, google_api_key=GOOGLE_API_KEY)
61
  prompt = PromptTemplate(template=prompt_template, input_variables=["context", "question"])
62
  chain = load_qa_chain(model, chain_type="stuff", prompt=prompt)
63
  return chain