Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -172,9 +172,6 @@ DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
|
| 172 |
# frequency_penalty=0.0,
|
| 173 |
# )
|
| 174 |
|
| 175 |
-
@tool
|
| 176 |
-
def reverse_string(input_string: str) -> str:
|
| 177 |
-
return input_string[::-1]
|
| 178 |
|
| 179 |
# Define the real agent
|
| 180 |
class BasicAgent:
|
|
@@ -194,7 +191,6 @@ class BasicAgent:
|
|
| 194 |
WikipediaSearchTool(),
|
| 195 |
PythonInterpreterTool(),
|
| 196 |
FinalAnswerTool(),
|
| 197 |
-
reverse_string,
|
| 198 |
],
|
| 199 |
model=self.model,
|
| 200 |
max_steps=10,
|
|
|
|
| 172 |
# frequency_penalty=0.0,
|
| 173 |
# )
|
| 174 |
|
|
|
|
|
|
|
|
|
|
| 175 |
|
| 176 |
# Define the real agent
|
| 177 |
class BasicAgent:
|
|
|
|
| 191 |
WikipediaSearchTool(),
|
| 192 |
PythonInterpreterTool(),
|
| 193 |
FinalAnswerTool(),
|
|
|
|
| 194 |
],
|
| 195 |
model=self.model,
|
| 196 |
max_steps=10,
|