Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -95,10 +95,12 @@ agent = CodeAgent(
|
|
95 |
)
|
96 |
|
97 |
# Gradio interface with text and audio output
|
98 |
-
def gradio_search_jokes(word):
|
99 |
-
"""Wrapper function for Gradio to call search_dad_jokes and generate audio."""
|
100 |
-
response_text, audio_file = search_dad_jokes(word) # Ensure search_dad_jokes returns (text, file path)
|
101 |
-
return response_text, audio_file
|
|
|
|
|
102 |
|
103 |
# Define the Gradio UI
|
104 |
#with gr.Blocks() as demo:
|
|
|
95 |
)
|
96 |
|
97 |
# Gradio interface with text and audio output
|
98 |
+
#def gradio_search_jokes(word):
|
99 |
+
# """Wrapper function for Gradio to call search_dad_jokes and generate audio."""
|
100 |
+
# response_text, audio_file = search_dad_jokes(word) # Ensure search_dad_jokes returns (text, file path)
|
101 |
+
# return response_text, audio_file
|
102 |
+
|
103 |
+
|
104 |
|
105 |
# Define the Gradio UI
|
106 |
#with gr.Blocks() as demo:
|