Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -12,44 +12,33 @@ AUDIO_URLS = {
|
|
12 |
|
13 |
def create_news_dashboard():
|
14 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
15 |
-
gr.Markdown(
|
16 |
-
"""
|
17 |
-
# π» Radio News Dashboard
|
18 |
-
### Listen to the latest news updates across different categories
|
19 |
-
"""
|
20 |
-
)
|
21 |
|
22 |
-
with gr.
|
23 |
-
with gr.Column():
|
24 |
gr.Markdown("### π° Money News")
|
25 |
-
gr.Audio(AUDIO_URLS["Money"], autoplay=False
|
26 |
|
27 |
-
with gr.Column():
|
28 |
gr.Markdown("### π Geopolitical News")
|
29 |
-
gr.Audio(AUDIO_URLS["Geopolitical"], autoplay=False
|
30 |
|
31 |
-
with gr.Column():
|
32 |
gr.Markdown("### π World News")
|
33 |
-
gr.Audio(AUDIO_URLS["World"], autoplay=False
|
34 |
-
|
35 |
-
|
|
|
36 |
gr.Markdown("### π Entertainment")
|
37 |
-
gr.Audio(AUDIO_URLS["Entertainment"], autoplay=False
|
38 |
|
39 |
-
with gr.Column():
|
40 |
gr.Markdown("### π₯ Health News")
|
41 |
-
gr.Audio(AUDIO_URLS["Health"], autoplay=False
|
42 |
|
43 |
-
with gr.Column():
|
44 |
gr.Markdown("### π Sports News")
|
45 |
-
gr.Audio(AUDIO_URLS["Sports"], autoplay=False
|
46 |
-
|
47 |
-
gr.Markdown(
|
48 |
-
"""
|
49 |
-
---
|
50 |
-
### π Note: Click on any player to listen to the corresponding news segment
|
51 |
-
"""
|
52 |
-
)
|
53 |
|
54 |
return demo
|
55 |
|
|
|
12 |
|
13 |
def create_news_dashboard():
|
14 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
15 |
+
gr.Markdown("# π» Radio News Dashboard")
|
|
|
|
|
|
|
|
|
|
|
16 |
|
17 |
+
with gr.Row():
|
18 |
+
with gr.Column(scale=1):
|
19 |
gr.Markdown("### π° Money News")
|
20 |
+
gr.Audio(AUDIO_URLS["Money"], autoplay=False)
|
21 |
|
22 |
+
with gr.Column(scale=1):
|
23 |
gr.Markdown("### π Geopolitical News")
|
24 |
+
gr.Audio(AUDIO_URLS["Geopolitical"], autoplay=False)
|
25 |
|
26 |
+
with gr.Column(scale=1):
|
27 |
gr.Markdown("### π World News")
|
28 |
+
gr.Audio(AUDIO_URLS["World"], autoplay=False)
|
29 |
+
|
30 |
+
with gr.Row():
|
31 |
+
with gr.Column(scale=1):
|
32 |
gr.Markdown("### π Entertainment")
|
33 |
+
gr.Audio(AUDIO_URLS["Entertainment"], autoplay=False)
|
34 |
|
35 |
+
with gr.Column(scale=1):
|
36 |
gr.Markdown("### π₯ Health News")
|
37 |
+
gr.Audio(AUDIO_URLS["Health"], autoplay=False)
|
38 |
|
39 |
+
with gr.Column(scale=1):
|
40 |
gr.Markdown("### π Sports News")
|
41 |
+
gr.Audio(AUDIO_URLS["Sports"], autoplay=False)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
|
43 |
return demo
|
44 |
|