Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -20,38 +20,38 @@ def create_news_dashboard():
|
|
20 |
with gr.Row():
|
21 |
with gr.Column(scale=1):
|
22 |
gr.Markdown("### π° Money News")
|
23 |
-
money_audio = gr.Audio(interactive=False)
|
24 |
money_btn = gr.Button("Play Money News")
|
25 |
money_btn.click(fn=fetch_audio, inputs=gr.State("Money"), outputs=money_audio)
|
26 |
|
27 |
with gr.Column(scale=1):
|
28 |
gr.Markdown("### π Geopolitical News")
|
29 |
-
geo_audio = gr.Audio(interactive=False)
|
30 |
geo_btn = gr.Button("Play Geopolitical News")
|
31 |
geo_btn.click(fn=fetch_audio, inputs=gr.State("Geopolitical"), outputs=geo_audio)
|
32 |
|
33 |
with gr.Column(scale=1):
|
34 |
gr.Markdown("### π World News")
|
35 |
-
world_audio = gr.Audio(interactive=False)
|
36 |
world_btn = gr.Button("Play World News")
|
37 |
world_btn.click(fn=fetch_audio, inputs=gr.State("World"), outputs=world_audio)
|
38 |
|
39 |
with gr.Row():
|
40 |
with gr.Column(scale=1):
|
41 |
gr.Markdown("### π Entertainment")
|
42 |
-
ent_audio = gr.Audio(interactive=False)
|
43 |
ent_btn = gr.Button("Play Entertainment News")
|
44 |
ent_btn.click(fn=fetch_audio, inputs=gr.State("Entertainment"), outputs=ent_audio)
|
45 |
|
46 |
with gr.Column(scale=1):
|
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 |
|
|
|
20 |
with gr.Row():
|
21 |
with gr.Column(scale=1):
|
22 |
gr.Markdown("### π° Money News")
|
23 |
+
money_audio = gr.Audio(interactive=False, type="filepath")
|
24 |
money_btn = gr.Button("Play Money News")
|
25 |
money_btn.click(fn=fetch_audio, inputs=gr.State("Money"), outputs=money_audio)
|
26 |
|
27 |
with gr.Column(scale=1):
|
28 |
gr.Markdown("### π Geopolitical News")
|
29 |
+
geo_audio = gr.Audio(interactive=False, type="filepath")
|
30 |
geo_btn = gr.Button("Play Geopolitical News")
|
31 |
geo_btn.click(fn=fetch_audio, inputs=gr.State("Geopolitical"), outputs=geo_audio)
|
32 |
|
33 |
with gr.Column(scale=1):
|
34 |
gr.Markdown("### π World News")
|
35 |
+
world_audio = gr.Audio(interactive=False, type="filepath")
|
36 |
world_btn = gr.Button("Play World News")
|
37 |
world_btn.click(fn=fetch_audio, inputs=gr.State("World"), outputs=world_audio)
|
38 |
|
39 |
with gr.Row():
|
40 |
with gr.Column(scale=1):
|
41 |
gr.Markdown("### π Entertainment")
|
42 |
+
ent_audio = gr.Audio(interactive=False, type="filepath")
|
43 |
ent_btn = gr.Button("Play Entertainment News")
|
44 |
ent_btn.click(fn=fetch_audio, inputs=gr.State("Entertainment"), outputs=ent_audio)
|
45 |
|
46 |
with gr.Column(scale=1):
|
47 |
gr.Markdown("### π₯ Health News")
|
48 |
+
health_audio = gr.Audio(interactive=False, type="filepath")
|
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, type="filepath")
|
55 |
sports_btn = gr.Button("Play Sports News")
|
56 |
sports_btn.click(fn=fetch_audio, inputs=gr.State("Sports"), outputs=sports_audio)
|
57 |
|