uasername commited on
Commit
c35211c
·
verified ·
1 Parent(s): 065638b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -88,10 +88,10 @@ agent = CodeAgent(
88
  )
89
 
90
  # Gradio interface with text and audio output
91
- def gradio_search_jokes(word):
92
- """Wrapper function for Gradio to call search_dad_jokes and generate audio."""
93
- response_text, audio_file = search_dad_jokes(word) # Ensure search_dad_jokes returns (text, file path)
94
- return response_text, audio_file
95
 
96
 
97
 
@@ -107,7 +107,7 @@ def gradio_search_jokes(word):
107
  # btn = gr.Button("Get Jokes")
108
  # btn.click(gradio_search_jokes, inputs=input_box, outputs=[output_text, output_audio])
109
  #
110
- #demo.launch()
111
 
112
 
113
  GradioUI(agent).launch()
 
88
  )
89
 
90
  # Gradio interface with text and audio output
91
+ # def gradio_search_jokes(word):
92
+ # """Wrapper function for Gradio to call search_dad_jokes and generate audio."""
93
+ # response_text, audio_file = search_dad_jokes(word) # Ensure search_dad_jokes returns (text, file path)
94
+ # return response_text, audio_file
95
 
96
 
97
 
 
107
  # btn = gr.Button("Get Jokes")
108
  # btn.click(gradio_search_jokes, inputs=input_box, outputs=[output_text, output_audio])
109
  #
110
+ # demo.launch()
111
 
112
 
113
  GradioUI(agent).launch()