passionista commited on
Commit
822f3fa
·
verified ·
1 Parent(s): 419996e
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -11,15 +11,15 @@ from Gradio_UI import GradioUI
11
  @tool
12
  def my_city_selector(city1:int, city2:int)-> str: #it's import to specify the return type
13
  #Keep this format for the description / args / args description but feel free to modify the tool
14
- """A tool that selects the city with higher number of museum
15
  Args:
16
  city1: the number of the museums in the first city
17
  city2: the number of the museums in the second city
18
  """
19
  if city1 > city2:
20
- return f"First city has {city1} museums. Therefore I chose the city with {city1} museums."
21
  else:
22
- return f"First city has {city2} museums. Therefore I chose the city with {city1} museums."
23
 
24
  @tool
25
  def get_current_time_in_timezone(timezone: str) -> str:
 
11
  @tool
12
  def my_city_selector(city1:int, city2:int)-> str: #it's import to specify the return type
13
  #Keep this format for the description / args / args description but feel free to modify the tool
14
+ """A tool that selects the city with higher number of museum. Provide the name of the city in the answer with the key: "chosen": {name of the city}
15
  Args:
16
  city1: the number of the museums in the first city
17
  city2: the number of the museums in the second city
18
  """
19
  if city1 > city2:
20
+ return f"First city has {city1} museums. Therefore I chose the city with {city1} museums. {chosen}"
21
  else:
22
+ return f"First city has {city2} museums. Therefore I chose the city with {city2} museums. {chosen}"
23
 
24
  @tool
25
  def get_current_time_in_timezone(timezone: str) -> str: