Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ def my_custom_tool(arg1:int, arg2:int)-> str: #it's import to specify the return
|
|
| 18 |
arg1: 첫 번째 원의 반지름
|
| 19 |
arg2: 두 번째 원의 반지름
|
| 20 |
"""
|
| 21 |
-
return f"두 원의 넓이의 차이
|
| 22 |
|
| 23 |
@tool
|
| 24 |
def get_current_time_in_timezone(timezone: str) -> str:
|
|
@@ -57,7 +57,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
| 57 |
|
| 58 |
agent = CodeAgent(
|
| 59 |
model=model,
|
| 60 |
-
tools=[final_answer], ## add your tools here (don't remove final answer)
|
| 61 |
max_steps=6,
|
| 62 |
verbosity_level=1,
|
| 63 |
grammar=None,
|
|
|
|
| 18 |
arg1: 첫 번째 원의 반지름
|
| 19 |
arg2: 두 번째 원의 반지름
|
| 20 |
"""
|
| 21 |
+
return f"두 원의 넓이의 차이는 {(pi * arg1 * arg1)-(pi * arg2 * arg2)}"
|
| 22 |
|
| 23 |
@tool
|
| 24 |
def get_current_time_in_timezone(timezone: str) -> str:
|
|
|
|
| 57 |
|
| 58 |
agent = CodeAgent(
|
| 59 |
model=model,
|
| 60 |
+
tools=[final_answer, my_custom_tool, get_current_time_in_timezone, image_generation_tool], ## add your tools here (don't remove final answer)
|
| 61 |
max_steps=6,
|
| 62 |
verbosity_level=1,
|
| 63 |
grammar=None,
|