fernvndes commited on
Commit
b36c9fc
·
verified ·
1 Parent(s): e139af5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -1
app.py CHANGED
@@ -10,11 +10,21 @@ from Gradio_UI import GradioUI
10
 
11
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
12
  @tool
 
13
  def generate_random_number(start: int, end: int) -> int:
14
- """Gera um número aleatório entre start e end."""
 
 
 
 
 
 
 
 
15
  return random.randint(start, end)
16
 
17
 
 
18
  @tool
19
  def get_current_time_in_timezone(timezone: str) -> str:
20
  """A tool that fetches the current local time in a specified timezone.
 
10
 
11
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
12
  @tool
13
+ @tool
14
  def generate_random_number(start: int, end: int) -> int:
15
+ """Gera um número aleatório entre 'start' e 'end'.
16
+
17
+ Args:
18
+ start (int): O valor inicial do intervalo (inclusive).
19
+ end (int): O valor final do intervalo (inclusive).
20
+
21
+ Returns:
22
+ int: Um número aleatório entre 'start' e 'end'.
23
+ """
24
  return random.randint(start, end)
25
 
26
 
27
+
28
  @tool
29
  def get_current_time_in_timezone(timezone: str) -> str:
30
  """A tool that fetches the current local time in a specified timezone.