Spaces:
Build error
Build error
Chandranshu Jain
commited on
Update app.py
Browse files
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=
|
| 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
|