AIVAHr-project commited on
Commit
4a6131b
·
verified ·
1 Parent(s): a3cd300

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -67,7 +67,7 @@ class BasicAgent:
67
  if hasattr(self.agent, 'run'):
68
  return self.agent.run(input_text) # Call the `run` method of CodeAgent
69
  else:
70
- raise AttributeError("The agent does not have a 'run' method.")nt:
71
  def __init__(self):
72
  # Get Hugging Face API token from environment variables
73
  HF_TOKEN = os.getenv("HF_API_KEY")
 
67
  if hasattr(self.agent, 'run'):
68
  return self.agent.run(input_text) # Call the `run` method of CodeAgent
69
  else:
70
+ raise AttributeError("The agent does not have a 'run' method.")
71
  def __init__(self):
72
  # Get Hugging Face API token from environment variables
73
  HF_TOKEN = os.getenv("HF_API_KEY")