Frazer2810 commited on
Commit
45a5fa0
·
verified ·
1 Parent(s): 31d2ee4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,7 +11,7 @@ try:
11
  except ImportError as e:
12
  print(f"ERRORE: agent.py non trovato o errore nell'importazione di GaiaAgent: {e}")
13
  class GaiaAgent:
14
- def __init__(self, model_name="gpt-4o"):
15
  print("Fallback BasicAgent inizializzato perché l'import di GaiaAgent è fallito.")
16
  self.model_name = model_name
17
  def __call__(self, question: str) -> str:
@@ -47,7 +47,7 @@ def run_and_submit_all(profile: gr.OAuthProfile | None):
47
  submit_url = f"{api_url}/submit"
48
 
49
  try:
50
- agent = GaiaAgent(model_name="gpt-4o") # o "gpt-4-turbo", ecc.
51
  except Exception as e:
52
  print(f"Errore durante l'istanziazione dell'agente: {e}")
53
  return f"Errore durante l'inizializzazione dell'agente: {e}", None
 
11
  except ImportError as e:
12
  print(f"ERRORE: agent.py non trovato o errore nell'importazione di GaiaAgent: {e}")
13
  class GaiaAgent:
14
+ def __init__(self, model_name="gpt-4.1"):
15
  print("Fallback BasicAgent inizializzato perché l'import di GaiaAgent è fallito.")
16
  self.model_name = model_name
17
  def __call__(self, question: str) -> str:
 
47
  submit_url = f"{api_url}/submit"
48
 
49
  try:
50
+ agent = GaiaAgent(model_name="gpt-4.1")
51
  except Exception as e:
52
  print(f"Errore durante l'istanziazione dell'agente: {e}")
53
  return f"Errore durante l'inizializzazione dell'agente: {e}", None