Spaces:
Running
Running
Update app.py
Browse files
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],
|