Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,7 +25,29 @@ def my_party_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
|
|
| 25 |
arg1: A word that describes the group of people: family, friends, coworkers
|
| 26 |
arg2: The total number of people
|
| 27 |
"""
|
| 28 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
@tool
|
| 31 |
def get_current_time_in_timezone(timezone: str) -> str:
|
|
|
|
| 25 |
arg1: A word that describes the group of people: family, friends, coworkers
|
| 26 |
arg2: The total number of people
|
| 27 |
"""
|
| 28 |
+
party = ""
|
| 29 |
+
if "friends" in arg1:
|
| 30 |
+
if arg2 < 6:
|
| 31 |
+
party = "Outdoor party at backyard with grilled meat and wine"
|
| 32 |
+
else:
|
| 33 |
+
party = "Book a cabin near the lake. Pizza and drinks"
|
| 34 |
+
|
| 35 |
+
elif "family" in arg1:
|
| 36 |
+
if arg2 < 4:
|
| 37 |
+
party = "Cozy party at home, pirogi, meat and wine"
|
| 38 |
+
else:
|
| 39 |
+
party = "Book a table in restaurant"
|
| 40 |
+
|
| 41 |
+
elif "coworkers" in arg1:
|
| 42 |
+
if arg2 < 6:
|
| 43 |
+
party = "Outdoor party at backyard with grilled meat and drinks"
|
| 44 |
+
else:
|
| 45 |
+
party = "Book a party room. Pizza and drinks"
|
| 46 |
+
|
| 47 |
+
else:
|
| 48 |
+
party = "Please give more information"
|
| 49 |
+
|
| 50 |
+
return party
|
| 51 |
|
| 52 |
@tool
|
| 53 |
def get_current_time_in_timezone(timezone: str) -> str:
|