uasername commited on
Commit
ad7802b
·
verified ·
1 Parent(s): 1da9b34

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -12
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()