Update app.py
Browse filesCorrected the agent call function
app.py
CHANGED
|
@@ -45,11 +45,11 @@ class BasicAgent:
|
|
| 45 |
contents=question,
|
| 46 |
config=types.GenerateContentConfig(
|
| 47 |
tools=[types.Tool(
|
| 48 |
-
|
| 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 |
"""
|