Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -51,7 +51,7 @@ def get_conversational_chain(api_key):
|
|
| 51 |
|
| 52 |
Answer (based only on the context above):
|
| 53 |
"""
|
| 54 |
-
model = ChatGoogleGenerativeAI(model="gemini-
|
| 55 |
prompt = PromptTemplate(template=prompt_template, input_variables=["context", "question"])
|
| 56 |
|
| 57 |
chain = prompt | model | StrOutputParser()
|
|
|
|
| 51 |
|
| 52 |
Answer (based only on the context above):
|
| 53 |
"""
|
| 54 |
+
model = ChatGoogleGenerativeAI(model="gemini-3-flash-preview", temperature=0, google_api_key=api_key)
|
| 55 |
prompt = PromptTemplate(template=prompt_template, input_variables=["context", "question"])
|
| 56 |
|
| 57 |
chain = prompt | model | StrOutputParser()
|