Commit
·
54f691e
1
Parent(s):
764b11b
Update app.py
Browse filesMaking GeminiAgent the main agent
app.py
CHANGED
|
@@ -32,13 +32,13 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 32 |
|
| 33 |
# 1. Instantiate Agent (modify this part to create your agent)
|
| 34 |
try:
|
| 35 |
-
agent =
|
| 36 |
-
agent_type = "
|
| 37 |
except Exception as main_agent_error:
|
| 38 |
print(f"{agent_type} failed to initialize: {main_agent_error}.")
|
| 39 |
try:
|
| 40 |
-
agent =
|
| 41 |
-
agent_type =
|
| 42 |
print(f"Falling back to {agent_type}.")
|
| 43 |
except Exception as secondary_agent_error:
|
| 44 |
print(f"{agent_type} failed to initialize: {secondary_agent_error}.")
|
|
|
|
| 32 |
|
| 33 |
# 1. Instantiate Agent (modify this part to create your agent)
|
| 34 |
try:
|
| 35 |
+
agent = GeminiAgent()
|
| 36 |
+
agent_type = "GeminiAgent"
|
| 37 |
except Exception as main_agent_error:
|
| 38 |
print(f"{agent_type} failed to initialize: {main_agent_error}.")
|
| 39 |
try:
|
| 40 |
+
agent = BasicAgent()
|
| 41 |
+
agent_type = "BasicAgent"
|
| 42 |
print(f"Falling back to {agent_type}.")
|
| 43 |
except Exception as secondary_agent_error:
|
| 44 |
print(f"{agent_type} failed to initialize: {secondary_agent_error}.")
|