eswardivi commited on
Commit
ecfb259
β€’
1 Parent(s): ee84f0a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
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