Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -39,8 +39,15 @@ output2_Audio = gr.Audio(label = "Generated Audio")
|
|
39 |
title = "Generate Text and it's Audio!"
|
40 |
description = "Provide the text, and how many subwords to generate"
|
41 |
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
iface = gr.Interface(fn=generateTextAndAudio,
|
43 |
inputs=[input1_textbox, input2_slider],
|
44 |
outputs=[output1_textbox, output2_Audio],
|
45 |
title=title,
|
46 |
-
description=description
|
|
|
|
39 |
title = "Generate Text and it's Audio!"
|
40 |
description = "Provide the text, and how many subwords to generate"
|
41 |
|
42 |
+
examples = [
|
43 |
+
["I won a", 50],
|
44 |
+
["My name is", 30],
|
45 |
+
["I have", 60]
|
46 |
+
]
|
47 |
+
|
48 |
iface = gr.Interface(fn=generateTextAndAudio,
|
49 |
inputs=[input1_textbox, input2_slider],
|
50 |
outputs=[output1_textbox, output2_Audio],
|
51 |
title=title,
|
52 |
+
description=description,
|
53 |
+
examples=examples).launch(debug = True)
|