Spaces:
Running
Running
Create jokes.py
Browse files
jokes.py
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
def gradio_search_jokes(word):
|
2 |
+
"""Wrapper function for Gradio to call search_dad_jokes and generate audio."""
|
3 |
+
response_text, audio_file = search_dad_jokes(word) # Ensure search_dad_jokes returns (text, file path)
|
4 |
+
return response_text, audio_file
|