Jeff Myers II commited on
Commit
5fb0729
·
1 Parent(s): 7f1b674

Added all categories back to demo.

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -94,8 +94,8 @@ with gr.Blocks() as demo:
94
  return num_headlines, category, get
95
 
96
  def show_headline(headlines, descriptions): ######## Show news headlines and descriptions
97
- headline = gr.Radio(label="News Headlines", choices=headlines, value=headlines[0], interactive=True, visible=True)
98
- description = gr.Textbox(label="Headline Description", value=descriptions[0], visible=True)
99
  show = gr.Button("Show Content", visible=True)
100
 
101
  return headline, description, show
 
94
  return num_headlines, category, get
95
 
96
  def show_headline(headlines, descriptions): ######## Show news headlines and descriptions
97
+ headline = gr.Radio(label="Select an Article", choices=headlines, value=headlines[0], interactive=True, visible=True)
98
+ description = gr.Textbox(label="Article Description", value=descriptions[0], visible=True)
99
  show = gr.Button("Show Content", visible=True)
100
 
101
  return headline, description, show