Update app.py
Browse filesCreated the first version of the agent with gemini model and google search tool
app.py
CHANGED
|
@@ -34,7 +34,12 @@ class BasicAgent:
|
|
| 34 |
print(f"Agent returning fixed answer: {fixed_answer}")
|
| 35 |
return fixed_answer
|
| 36 |
|
| 37 |
-
agent =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
|
| 39 |
def run_and_submit_all( profile: gr.OAuthProfile | None):
|
| 40 |
"""
|
|
|
|
| 34 |
print(f"Agent returning fixed answer: {fixed_answer}")
|
| 35 |
return fixed_answer
|
| 36 |
|
| 37 |
+
agent = CodeAgent(
|
| 38 |
+
model = llm_model,
|
| 39 |
+
tool = [google_search_tool]
|
| 40 |
+
)
|
| 41 |
+
|
| 42 |
+
return agent.run(text)
|
| 43 |
|
| 44 |
def run_and_submit_all( profile: gr.OAuthProfile | None):
|
| 45 |
"""
|