jjvelezo commited on
Commit
e2471bf
·
verified ·
1 Parent(s): e4f42cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -16,9 +16,8 @@ class BasicAgent:
16
  print(f"Agent returning fixed answer: {fixed_answer}")
17
  return fixed_answer
18
 
19
- # Inicializa el agente mejorado
20
- api_key = "tu_api_key" # Asegúrate de tener la API Key correcta
21
- agent = EnhancedAgent(api_key=api_key)
22
 
23
  def run_smol_agent():
24
  question = "Search for the best music recommendations for a party at the Wayne's mansion."
@@ -32,7 +31,7 @@ def run_and_submit_all(profile: gr.OAuthProfile | None):
32
  and displays the results.
33
  """
34
  # --- Determine HF Space Runtime URL and Repo URL ---
35
- space_id = os.getenv("SPACE_ID") # Get the SPACE_ID for sending link to the code
36
 
37
  if profile:
38
  username = f"jujovele"
@@ -47,7 +46,7 @@ def run_and_submit_all(profile: gr.OAuthProfile | None):
47
 
48
  # 1. Instantiate Agent (modify this part to create your agent)
49
  try:
50
- agent = EnhancedAgent(api_key=api_key) # Crea tu agente mejorado
51
  except Exception as e:
52
  print(f"Error instantiating agent: {e}")
53
  return f"Error initializing agent: {e}", None
 
16
  print(f"Agent returning fixed answer: {fixed_answer}")
17
  return fixed_answer
18
 
19
+ # Inicializa el agente mejorado sin la API key
20
+ agent = EnhancedAgent() # Sin necesidad de la API key
 
21
 
22
  def run_smol_agent():
23
  question = "Search for the best music recommendations for a party at the Wayne's mansion."
 
31
  and displays the results.
32
  """
33
  # --- Determine HF Space Runtime URL and Repo URL ---
34
+ space_id = os.getenv("SPACE_ID") # Get the SPACE_ID for sending link to the code
35
 
36
  if profile:
37
  username = f"jujovele"
 
46
 
47
  # 1. Instantiate Agent (modify this part to create your agent)
48
  try:
49
+ agent = EnhancedAgent() # Crea tu agente mejorado sin la API key
50
  except Exception as e:
51
  print(f"Error instantiating agent: {e}")
52
  return f"Error initializing agent: {e}", None