stkarlos commited on
Commit
8561b1e
·
verified ·
1 Parent(s): 44ee35c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -13,9 +13,9 @@ from Gradio_UI import GradioUI
13
  @tool
14
  def my_fairytale_tool(arg:int)-> str: #it's import to specify the return type
15
  #Keep this format for the description / args / args description but feel free to modify the tool
16
- """A tool that returns a heads-up string of two fairytiles' titles
17
  Args:
18
- arg: random number
19
  """
20
 
21
  fairytales = [
@@ -31,7 +31,7 @@ def my_fairytale_tool(arg:int)-> str: #it's import to specify the return type
31
  fairytales.pop(int(arg / len(fairytales)))
32
  selected_2 = fairytales[random.randint(0,len(fairytales)-1)]
33
 
34
- return f"What a crazy idea to see a story of {selected_1} vs {selected_2}"
35
 
36
  @tool
37
  def get_current_time_in_timezone(timezone: str) -> str:
 
13
  @tool
14
  def my_fairytale_tool(arg:int)-> str: #it's import to specify the return type
15
  #Keep this format for the description / args / args description but feel free to modify the tool
16
+ """A tool that returns a heads-up string of two fairytiles' titles.
17
  Args:
18
+ arg: any positive random integer
19
  """
20
 
21
  fairytales = [
 
31
  fairytales.pop(int(arg / len(fairytales)))
32
  selected_2 = fairytales[random.randint(0,len(fairytales)-1)]
33
 
34
+ return f"Title to draw: What a crazy idea to see a story of {selected_1} vs {selected_2}!"
35
 
36
  @tool
37
  def get_current_time_in_timezone(timezone: str) -> str: