aa0338 commited on
Commit
4b4e878
·
verified ·
1 Parent(s): 81ad61f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -18,7 +18,12 @@ def my_custom_tool(arg1:int, arg2:int)-> str: #it's import to specify the return
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:
 
18
  arg1: 첫 번째 원의 반지름
19
  arg2: 두 번째 원의 반지름
20
  """
21
+ try:
22
+ area1 = (pi * arg1 * arg1)
23
+ area2 = (pi * arg2 * arg2)
24
+ return f"두 원의 넓이의 차이는 {area1-area2}"
25
+ except Exception as e:
26
+ return f"두 원의 넓이의 차이를 구하는 중 에러 발생"
27
 
28
  @tool
29
  def get_current_time_in_timezone(timezone: str) -> str: