Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,3 @@
|
|
1 |
-
### Adapted from https://huggingface.co/spaces/valurank/News_Articles_Categorization
|
2 |
-
|
3 |
#importing the necessary libraries
|
4 |
import gradio as gr
|
5 |
import numpy as np
|
@@ -58,11 +56,84 @@ def get_category(text):
|
|
58 |
|
59 |
return emotion
|
60 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
#Creating the interface for the radio app
|
62 |
demo = gr.Interface(get_category,
|
63 |
-
inputs=gr.
|
64 |
-
outputs = "
|
65 |
-
title="News Article Categorization")
|
66 |
|
67 |
|
68 |
#Launching the gradio app
|
|
|
|
|
|
|
1 |
#importing the necessary libraries
|
2 |
import gradio as gr
|
3 |
import numpy as np
|
|
|
56 |
|
57 |
return emotion
|
58 |
|
59 |
+
init = """The Australian Taxation Office is preparing to expand a controversial scheme that resurrects decades-old debts in its pursuit of more than $15bn, despite rising numbers of complaints, transparency concerns and at least one systems error resulting in miscalculations.
|
60 |
+
|
61 |
+
Internal ATO documents released to Guardian Australia show the program is designed to ramp up this year to eventually capture up to 1.8m entities, largely consisting of individuals.
|
62 |
+
|
63 |
+
The documents, released under freedom of information laws, show the ATO had decided against seeking a reprieve for older Australians and those on lower incomes as part of the plan to recoup historical debts. But it said in a statement it was “currently assessing next steps” for the scheme.
|
64 |
+
|
65 |
+
Dubbed robotax, the initiative has drawn comparison to the flawed robodebt compliance program that relied on automated processes, and has been described as “brutal” by taxpayers, including those who say they do not know how the debts were incurred and no longer have documents required to challenge them.
|
66 |
+
|
67 |
+
The old debts are described as “on-hold”, marked to be scraped from tax refunds.
|
68 |
+
|
69 |
+
Sign up for Guardian Australia’s free morning and afternoon email newsletters for your daily news roundup
|
70 |
+
|
71 |
+
The surge in ATO activity stems from a policy change to adjust parameters on its automated systems that had previously ignored old debts deemed uneconomical to pursue, some of which are more than two decades old.
|
72 |
+
|
73 |
+
The amounts are often linked to old business activity statements, GST payments, PAYG instalments and non-lodgment fines applied to those living overseas, with many of the debts unknowingly accrued and invisible to taxpayers for years.
|
74 |
+
|
75 |
+
Correspondence between the ATO and government officials, obtained under freedom of information
|
76 |
+
Correspondence between the ATO and government officials, obtained under freedom of information
|
77 |
+
The tax department started removing exemptions on its systems in 2022 that had previously filtered out the old debts.
|
78 |
+
|
79 |
+
An ATO spokesperson said on Monday night the tax office had “paused all communications and offsetting for those who had their debt placed on hold before 2017”. Offsetting refers to the initiative to extract the older debts from tax refunds.
|
80 |
+
|
81 |
+
“We are currently assessing next steps and no decision has been made yet as an outcome of this review,” the spokesperson said.
|
82 |
+
|
83 |
+
The ATO has consistently said it had no option under the law to cancel the debts, following advice that found an apparent flaw in its policies.
|
84 |
+
|
85 |
+
“The ATO has no discretion under the law to write these amounts off even though some of them might be quite aged, and must offset any future refund against these amounts no matter how small except in limited circumstances,” the spokesperson said.
|
86 |
+
|
87 |
+
“We are legally required to offset debts that were placed ‘on hold’ against any tax credits or refunds the taxpayer may become entitled to.”
|
88 |
+
|
89 |
+
The ATO plans to remove the last-remaining exemption, related to the age of the debt, before the end of this financial year, according to the documents, in an expansion of the program.
|
90 |
+
|
91 |
+
The exemptions had previously filtered out debts if they were very old, small, or the taxpayer was aged over 70 years or earning a taxable income of less than $50,000.
|
92 |
+
|
93 |
+
ATO correspondence shared with the federal government said: “When all exclusions are removed, all clients may have credits offset against their debts.”
|
94 |
+
|
95 |
+
The ATO’s approach to remove the exemptions had been discussed with Treasury officials as far back as mid 2022, according to the documents. There have also been periodic updates provided by the ATO to the office of the assistant treasurer, Stephen Jones.
|
96 |
+
|
97 |
+
Pre-empting questions about the program, the ATO also shared its “media holding lines” with government officials.
|
98 |
+
|
99 |
+
A spokesperson for Jones said it was a matter for the ATO but the government was deeply concerned about the way the initiative had been communicated with taxpayers, and the stress caused.
|
100 |
+
|
101 |
+
“The ATO should ensure they communicate with compassion and understanding to impacted individuals,” the spokesperson said.
|
102 |
+
|
103 |
+
Last year the ATO paused a letter campaign alerting taxpayers to historical debts after conceding its communications caused “unnecessary distress”, although the debts still remain.
|
104 |
+
|
105 |
+
No reprieve
|
106 |
+
|
107 |
+
While tens of thousands of Australians have started having their old debts paid from their tax refunds, the number of people affected is set to escalate.
|
108 |
+
|
109 |
+
Up to 1.8 million ATO “clients”, which mainly refers to individuals but also includes small businesses and other entities, collectively owe more than $15bn of on-hold debts, the documents show.
|
110 |
+
|
111 |
+
Correspondence between the ATO and government officials, obtained under freedom of information
|
112 |
+
Correspondence between the ATO and government officials
|
113 |
+
The internal documents show the ATO decided against asking the finance minister to seek a waiver for some people, such as lower-income earners and older Australians.
|
114 |
+
|
115 |
+
It defended the blanket approach in correspondence with government officials by arguing it would be unfair to other taxpayers to let some off, and that it might set a bad precedent.
|
116 |
+
|
117 |
+
As a result, some taxpayers have been pushed further into hardship by having their anticipated tax refunds scraped for old debts, a scenario that has drawn criticism from the tax ombudsman.
|
118 |
+
|
119 |
+
The ATO began extracting debts from tax refunds before providing records to affected taxpayers that would have allowed them to see how the debts were accrued.
|
120 |
+
|
121 |
+
The lack of transparency has been a common complaint given some of the debts are so old they are almost impossible to challenge, far exceeding the five-year retention period most taxpayers are required to keep records.
|
122 |
+
|
123 |
+
“We are giving visibility to clients of their existing debts ‘on hold’ in two stages, prioritising those who we believe are more active in the system,” correspondence from the ATO to the assistant treasurer’s office said in August 2023.
|
124 |
+
|
125 |
+
“By 30 June 2025, we will provide visibility to all remaining clients.”
|
126 |
+
|
127 |
+
In separate correspondence with Treasury officials the same month, the ATO acknowledges a “small number of clients” had been impacted by a systems error that resulted in the amount to be offset being miscalculated.
|
128 |
+
|
129 |
+
After debts were extracted from a batch of 29,015 individuals and small businesses, the ATO disclosed it received 167 complaints from those affected.
|
130 |
+
|
131 |
+
The ATO commissioner, Chris Jordan, is due to give a major public address at the National Press Club on Wednesday shortly before stepping down from his role at the end of the month."""
|
132 |
+
|
133 |
#Creating the interface for the radio app
|
134 |
demo = gr.Interface(get_category,
|
135 |
+
inputs=[gr.Textbox(label="Paste article text here", value=init, lines=4)],
|
136 |
+
outputs = [gr.Textbox(label="Category", lines= 2)])
|
|
|
137 |
|
138 |
|
139 |
#Launching the gradio app
|