Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
| 41 |
|
| 42 |
-
return
|
| 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:
|