Update app.py
Browse files
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.")
|
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")
|