Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -59,7 +59,14 @@ def get_category(text):
|
|
59 |
return emotion
|
60 |
|
61 |
#Creating the interface for the radio app
|
62 |
-
demo = gr.Interface(get_category,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
outputs = "text",
|
64 |
title="News Article Categorization")
|
65 |
|
|
|
59 |
return emotion
|
60 |
|
61 |
#Creating the interface for the radio app
|
62 |
+
demo = gr.Interface(get_category,
|
63 |
+
inputs=gr.inputs.Textbox(label="Paste article text here", values="""It’s often said that people tend to become more politically conservative as they age. But millennials and generation Z are bucking the trend – supporting the Indigenous voice to parliament and backing centre-left and left parties at increasing rates in recent elections.
|
64 |
+
|
65 |
+
Political scientists say there has been a “fundamental shift”, at least partly because the experiences of younger voters are so much different from previous generations.
|
66 |
+
|
67 |
+
There’s a “new kind of adulthood” as one expert described it: younger Australians are leaving the family home, living in share houses, getting married, having children and buying their own home much later than previous generations did, if at all.
|
68 |
+
|
69 |
+
They also have much higher rates of university education, women’s labour market participation, and more identify as LGBTQI+, culturally diverse and not religious. Other studies have found a larger share of younger voters mistrust institutions such as political parties.""",lines=4)
|
70 |
outputs = "text",
|
71 |
title="News Article Categorization")
|
72 |
|