Spaces:
Running
Running
Jeff Myers II
commited on
Commit
·
5fb0729
1
Parent(s):
7f1b674
Added all categories back to demo.
Browse files
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="
|
98 |
-
description = gr.Textbox(label="
|
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
|