Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
from smolagents import
|
| 2 |
|
| 3 |
import sys # Add this import to fix the error
|
| 4 |
import datetime
|
|
@@ -37,7 +37,7 @@ def initialize_agent(endpoint_uri: str):
|
|
| 37 |
verbosity_level=3,
|
| 38 |
name="content_agent",
|
| 39 |
description="Evaluates whether text is polite or impolite.",
|
| 40 |
-
prompt_templates=combined_prompts
|
| 41 |
additional_authorized_imports=["pytz"]
|
| 42 |
)
|
| 43 |
|
|
|
|
| 1 |
+
from smolagents import DuckDuckGoSearchTool, load_tool,tool
|
| 2 |
|
| 3 |
import sys # Add this import to fix the error
|
| 4 |
import datetime
|
|
|
|
| 37 |
verbosity_level=3,
|
| 38 |
name="content_agent",
|
| 39 |
description="Evaluates whether text is polite or impolite.",
|
| 40 |
+
prompt_templates=combined_prompts,
|
| 41 |
additional_authorized_imports=["pytz"]
|
| 42 |
)
|
| 43 |
|