innafomina commited on
Commit
9fdd5b4
·
verified ·
1 Parent(s): 582922d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -37,9 +37,9 @@ def generate_jokes(joke_type:str)-> str: #it's import to specify the return type
37
  dataset = load_dataset(path, split = "train")
38
  # shuffle to make sure examples will be random
39
  dataset = dataset.shuffle()
40
- random_example = dataset[0][col]
41
 
42
- return random_example
43
 
44
  @tool
45
  def get_current_time_in_timezone(timezone: str) -> str:
 
37
  dataset = load_dataset(path, split = "train")
38
  # shuffle to make sure examples will be random
39
  dataset = dataset.shuffle()
40
+ joke = dataset[0][col]
41
 
42
+ return f'The joke is: {joke}'
43
 
44
  @tool
45
  def get_current_time_in_timezone(timezone: str) -> str: