Spaces:
Sleeping
Sleeping
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -43,7 +43,7 @@ def get_gpt_and_answer(question):
|
|
| 43 |
# result = chain.invoke({"question": question})
|
| 44 |
|
| 45 |
model = ChatGoogleGenerativeAI(model="gemini-2.5-flash")
|
| 46 |
-
result = (model.invoke([HumanMessage(content=
|
| 47 |
|
| 48 |
return result #(result['text'])
|
| 49 |
|
|
|
|
| 43 |
# result = chain.invoke({"question": question})
|
| 44 |
|
| 45 |
model = ChatGoogleGenerativeAI(model="gemini-2.5-flash")
|
| 46 |
+
result = (model.invoke([HumanMessage(content=template)]).content)
|
| 47 |
|
| 48 |
return result #(result['text'])
|
| 49 |
|