Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -51,7 +51,7 @@ def get_conversational_chain():
|
|
| 51 |
Answer:
|
| 52 |
"""
|
| 53 |
try:
|
| 54 |
-
model = ChatGoogleGenerativeAI(model="gemini-
|
| 55 |
prompt = PromptTemplate(template=prompt_template, input_variables=["context", "question"])
|
| 56 |
chain = load_qa_chain(llm=model, chain_type="stuff", prompt=prompt)
|
| 57 |
return chain
|
|
|
|
| 51 |
Answer:
|
| 52 |
"""
|
| 53 |
try:
|
| 54 |
+
model = ChatGoogleGenerativeAI(model="gemini-flash", client=genai, temperature=0.3)
|
| 55 |
prompt = PromptTemplate(template=prompt_template, input_variables=["context", "question"])
|
| 56 |
chain = load_qa_chain(llm=model, chain_type="stuff", prompt=prompt)
|
| 57 |
return chain
|