Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -47,4 +47,16 @@ def create_news_dashboard():
|
|
47 |
gr.Markdown("### π₯ Health News")
|
48 |
health_audio = gr.Audio(interactive=False)
|
49 |
health_btn = gr.Button("Play Health News")
|
50 |
-
health_btn.click(fn=fetch_audio, inputs=gr.State
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
gr.Markdown("### π₯ Health News")
|
48 |
health_audio = gr.Audio(interactive=False)
|
49 |
health_btn = gr.Button("Play Health News")
|
50 |
+
health_btn.click(fn=fetch_audio, inputs=gr.State("Health"), outputs=health_audio)
|
51 |
+
|
52 |
+
with gr.Column(scale=1):
|
53 |
+
gr.Markdown("### π Sports News")
|
54 |
+
sports_audio = gr.Audio(interactive=False)
|
55 |
+
sports_btn = gr.Button("Play Sports News")
|
56 |
+
sports_btn.click(fn=fetch_audio, inputs=gr.State("Sports"), outputs=sports_audio)
|
57 |
+
|
58 |
+
return demo
|
59 |
+
|
60 |
+
if __name__ == "__main__":
|
61 |
+
demo = create_news_dashboard()
|
62 |
+
demo.launch()
|