kevinwang676 commited on
Commit
5e7e349
1 Parent(s): e535096

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -126,6 +126,11 @@ class GradioInfer:
126
  community_icon = gr.HTML(community_icon_html, visible=False)
127
  loading_icon = gr.HTML(loading_icon_html, visible=False)
128
  share_button = gr.Button("滔滔AI,为爱滔滔💕", elem_id="share-btn", visible=False)
 
 
 
 
 
129
  gr.Markdown(self.article)
130
  generate.click(self.greet,
131
  inputs=[singer_l, inp_text, inp_note, inp_duration],
 
126
  community_icon = gr.HTML(community_icon_html, visible=False)
127
  loading_icon = gr.HTML(loading_icon_html, visible=False)
128
  share_button = gr.Button("滔滔AI,为爱滔滔💕", elem_id="share-btn", visible=False)
129
+ gr.Examples(examples=self.example_inputs,
130
+ inputs=[singer_l, inp_text, inp_note, inp_duration],
131
+ outputs=[singing_output, share_button, community_icon, loading_icon],
132
+ fn=self.greet,
133
+ cache_examples=True)
134
  gr.Markdown(self.article)
135
  generate.click(self.greet,
136
  inputs=[singer_l, inp_text, inp_note, inp_duration],