Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -110,15 +110,13 @@ with gr.Blocks(css=css) as demo:
|
|
110 |
Generate a bedtime story for a 5 years old audience who needs to get some sleep 😴
|
111 |
</p>
|
112 |
</div>""")
|
|
|
|
|
|
|
|
|
113 |
with gr.Group():
|
114 |
-
|
115 |
-
|
116 |
-
lang = gr.Dropdown(label="Pick a language", choices=["English", "French", "German", "Hindi", "Italian", "Polish", "Portuguese", "Spanish"], value="English")
|
117 |
-
submit_btn = gr.Button('Submit')
|
118 |
-
with gr.Group():
|
119 |
-
with gr.Column():
|
120 |
-
audio = gr.Audio(label="The story audio told")
|
121 |
-
story = gr.Textbox(label="The story text")
|
122 |
|
123 |
submit_btn.click(fn=app, inputs=[text, lang], outputs=[story, audio])
|
124 |
|
|
|
110 |
Generate a bedtime story for a 5 years old audience who needs to get some sleep 😴
|
111 |
</p>
|
112 |
</div>""")
|
113 |
+
with gr.Group():
|
114 |
+
text = gr.Textbox(label="Subject: what the story should be about ?", info="Will generate and tell a story about {your text input}")
|
115 |
+
lang = gr.Dropdown(label="Pick a language", choices=["English", "French", "German", "Hindi", "Italian", "Polish", "Portuguese", "Spanish"], value="English")
|
116 |
+
submit_btn = gr.Button('Submit')
|
117 |
with gr.Group():
|
118 |
+
audio = gr.Audio(label="The story audio told")
|
119 |
+
story = gr.Textbox(label="The story text")
|
|
|
|
|
|
|
|
|
|
|
|
|
120 |
|
121 |
submit_btn.click(fn=app, inputs=[text, lang], outputs=[story, audio])
|
122 |
|