Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -92,18 +92,18 @@ def gradio_search_jokes(word):
|
|
92 |
return response_text, audio_file
|
93 |
|
94 |
# Define the Gradio UI
|
95 |
-
with gr.Blocks() as demo:
|
96 |
-
gr.Markdown("### Dad Jokes Finder with AI & Text-to-Speech 🎙️")
|
97 |
-
|
98 |
-
with gr.Row():
|
99 |
-
input_box = gr.Textbox(label="Enter a word")
|
100 |
-
output_text = gr.Textbox(label="Jokes Found")
|
101 |
-
output_audio = gr.Audio(label="Audio Pronunciation", type="filepath")
|
102 |
-
|
103 |
-
btn = gr.Button("Get Jokes")
|
104 |
-
btn.click(gradio_search_jokes, inputs=input_box, outputs=[output_text, output_audio])
|
105 |
-
|
106 |
-
demo.launch()
|
107 |
|
108 |
|
109 |
#GradioUI(agent).launch()
|
|
|
92 |
return response_text, audio_file
|
93 |
|
94 |
# Define the Gradio UI
|
95 |
+
#with gr.Blocks() as demo:
|
96 |
+
# gr.Markdown("### Dad Jokes Finder with AI & Text-to-Speech 🎙️")
|
97 |
+
#
|
98 |
+
# with gr.Row():
|
99 |
+
# input_box = gr.Textbox(label="Enter a word")
|
100 |
+
# output_text = gr.Textbox(label="Jokes Found")
|
101 |
+
# output_audio = gr.Audio(label="Audio Pronunciation", type="filepath")
|
102 |
+
#
|
103 |
+
# btn = gr.Button("Get Jokes")
|
104 |
+
# btn.click(gradio_search_jokes, inputs=input_box, outputs=[output_text, output_audio])
|
105 |
+
#
|
106 |
+
#demo.launch()
|
107 |
|
108 |
|
109 |
#GradioUI(agent).launch()
|