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

Update app.py

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