Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -58,20 +58,20 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 58 |
prompt_templates = yaml.safe_load(stream)
|
| 59 |
|
| 60 |
# We're creating our CodeAgent
|
| 61 |
-
agent = CodeAgent(
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
)
|
| 72 |
|
| 73 |
|
| 74 |
-
|
| 75 |
except Exception as e:
|
| 76 |
print(f"Error instantiating agent: {e}")
|
| 77 |
return f"Error initializing agent: {e}", None
|
|
|
|
| 58 |
prompt_templates = yaml.safe_load(stream)
|
| 59 |
|
| 60 |
# We're creating our CodeAgent
|
| 61 |
+
#agent = CodeAgent(
|
| 62 |
+
# model=model,
|
| 63 |
+
# tools=[final_answer, DuckDuckGoSearchTool()], # add your tools here (don't remove final_answer)
|
| 64 |
+
# max_steps=6,
|
| 65 |
+
# verbosity_level=1,
|
| 66 |
+
# grammar=None,
|
| 67 |
+
# planning_interval=None,
|
| 68 |
+
# name=None,
|
| 69 |
+
# description=None,
|
| 70 |
+
# prompt_templates=prompt_templates
|
| 71 |
)
|
| 72 |
|
| 73 |
|
| 74 |
+
agent = BasicAgent()
|
| 75 |
except Exception as e:
|
| 76 |
print(f"Error instantiating agent: {e}")
|
| 77 |
return f"Error initializing agent: {e}", None
|