Francesco-A commited on
Commit
54f691e
·
1 Parent(s): 764b11b

Update app.py

Browse files

Making GeminiAgent the main agent

Files changed (1) hide show
  1. app.py +4 -4
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 = BasicAgent()
36
- agent_type = "BasicAgent"
37
  except Exception as main_agent_error:
38
  print(f"{agent_type} failed to initialize: {main_agent_error}.")
39
  try:
40
- agent = "GeminiAgent"
41
- agent_type = GeminiAgent()
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}.")