Spaces:
Runtime error
Runtime error
Update app.py
Browse files19 unmodified lines202122232425262719 unmodified linesDefaults to one random joke from Any category, English, JSON.Parameters:- categories (str): Comma-separated list from [Any, Programming, Misc, Pun, Dark, Spooky, Christmas], if you are asked a joke category that doesn't macht any of the categories from the previous list you must ignore this tool and come up with your own joke.- format (str): Must be 'json'. (JokeAPI also supports xml, yaml, txt, but we only parse JSON here.)- lang (str): ISO 639-1 code for language of the joke. Defaults to 'en'. If you are asked a joke in portuguese, please set this parameter as 'pt' when calling function.- blacklistFlags (str|None): Comma-separated flags to exclude: nsfw, religious, political, racist, sexist, explicit.19 unmodified lines2021222324252627282919 unmodified linesDefaults to one random joke from Any category, English, JSON.If you are asked a joke category that doesn't macht any of the categories parameters list you must ignore this tool and come up with your own joke.Parameters:- categories (str): Comma-separated list from [Any, Programming, Misc, Pun, Dark, Spooky, Christmas].- format (str): Must be 'json'. (JokeAPI also supports xml, yaml, txt, but we only parse JSON here.)- lang (str): ISO 639-1 code for language of the joke. Defaults to 'en'. If you are asked a joke in portuguese, please set this parameter as 'pt' when calling function.- blacklistFlags (str|None): Comma-separated flags to exclude: nsfw, religious, political, racist, sexist, explicit.
app.py+3-1