Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,11 +17,11 @@ def addition(arg1:int, arg2:int)-> int: #it's import to specify the return type
|
|
| 17 |
arg2: the second argument
|
| 18 |
"""
|
| 19 |
return arg1 + arg2
|
| 20 |
-
|
| 21 |
@tool
|
| 22 |
-
def get_emoji(type:str)-> str:
|
| 23 |
-
|
| 24 |
-
|
| 25 |
Args:
|
| 26 |
type: the first argument
|
| 27 |
"""
|
|
@@ -36,7 +36,7 @@ def get_emoji(type:str)-> str: #it's import to specify the return type
|
|
| 36 |
emoji = "XD"
|
| 37 |
else:
|
| 38 |
emoji = 'type not present'
|
| 39 |
-
|
| 40 |
return emoji
|
| 41 |
|
| 42 |
@tool
|
|
|
|
| 17 |
arg2: the second argument
|
| 18 |
"""
|
| 19 |
return arg1 + arg2
|
| 20 |
+
|
| 21 |
@tool
|
| 22 |
+
def get_emoji(type: str) -> str:
|
| 23 |
+
"""A tool that returns emoji based on type.
|
| 24 |
+
|
| 25 |
Args:
|
| 26 |
type: the first argument
|
| 27 |
"""
|
|
|
|
| 36 |
emoji = "XD"
|
| 37 |
else:
|
| 38 |
emoji = 'type not present'
|
| 39 |
+
|
| 40 |
return emoji
|
| 41 |
|
| 42 |
@tool
|