llamasrock commited on
Commit
4d998d0
·
verified ·
1 Parent(s): b32063e

Update app.py

Browse files

Created the first version of the agent with gemini model and google search tool

Files changed (1) hide show
  1. app.py +6 -1
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
  """