llamasrock commited on
Commit
45d6d65
·
verified ·
1 Parent(s): 39c290f

Update app.py

Browse files

Corrected the agent call function

Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -45,11 +45,11 @@ class BasicAgent:
45
  contents=question,
46
  config=types.GenerateContentConfig(
47
  tools=[types.Tool(
48
- google_search_retrieval=types.GoogleSearchRetrieval()
49
  )]
50
  )
51
  )
52
- return response
53
 
54
  def run_and_submit_all( profile: gr.OAuthProfile | None):
55
  """
 
45
  contents=question,
46
  config=types.GenerateContentConfig(
47
  tools=[types.Tool(
48
+ google_search=types.GoogleSearch()
49
  )]
50
  )
51
  )
52
+ return response.text
53
 
54
  def run_and_submit_all( profile: gr.OAuthProfile | None):
55
  """