Update app.py
Browse files
app.py
CHANGED
@@ -1,70 +1,5 @@
|
|
1 |
-
#Code adapted from: https://huggingface.co/spaces/
|
2 |
|
3 |
import gradio as gr
|
4 |
-
from gradio.mix import Parallel, Series
|
5 |
-
from transformers import AutoTokenizer, AutoModelWithLMHead, AutoModelForSeq2SeqLM
|
6 |
|
7 |
-
|
8 |
-
description = "Patse an article text or other text. Submit the text and the machine will create five summaries based on words in the text. Article from here: https://arstechnica.com/tech-policy/2024/03/glassdoor-adding-users-real-names-job-info-to-profiles-without-consent/"
|
9 |
-
examples = [
|
10 |
-
|
11 |
-
["""""""""
|
12 |
-
HGlassdoor, where employees go to leave anonymous reviews of employers, has recently begun adding real names to user profiles without users' consent, a Glassdoor user named Monica was shocked to discover last week.
|
13 |
-
|
14 |
-
"Time to delete your Glassdoor account and data," Monica, a Midwest-based software professional, warned other Glassdoor users in a blog. (Ars will only refer to Monica by her first name so that she can speak freely about her experience using Glassdoor to review employers.)
|
15 |
-
|
16 |
-
Monica joined Glassdoor about 10 years ago, she said, leaving a few reviews for her employers, taking advantage of other employees' reviews when considering new opportunities, and hoping to help others survey their job options. This month, though, she abruptly deleted her account after she contacted Glassdoor support to request help removing information from her account. She never expected that instead of removing information, Glassdoor's support team would take the real name that she provided in her support email and add it to her Glassdoor profile—despite Monica repeatedly and explicitly not consenting to Glassdoor storing her real name.
|
17 |
-
|
18 |
-
Although it's common for many online users to link services at sign-up to Facebook or Gmail accounts to verify identity and streamline logins, for years, Glassdoor has notably allowed users to sign up for its service anonymously. But in 2021, Glassdoor acquired Fishbowl, a professional networking app that integrated with Glassdoor last July. This acquisition meant that every Glassdoor user was automatically signed up for a Fishbowl account. And because Fishbowl requires users to verify their identities, Glassdoor's terms of service changed to require all users to be verified.
|
19 |
-
|
20 |
-
While users can remain anonymous, this change raises some potential concerns about data privacy and anonymity, Aaron Mackey, a lawyer for the Electronic Frontier Foundation (EFF), told Ars.
|
21 |
-
|
22 |
-
The EFF regularly defends Glassdoor users from being unmasked by retaliating employers. Particularly for employees who fear retaliation for reviews, Mackey said that Glassdoor users could historically choose never to share their real names, and the company now storing names for all users makes it much more likely that users could be linked to their reviews should Glassdoor's data ever be subpoenaed or leaked. That's what had Monica so concerned, too.
|
23 |
-
|
24 |
-
"Glassdoor now requires your real name and will add it to older accounts without your consent if they learn it, and your only option is to delete your account," Monica's blog warned. "They do not care that this puts people at risk with their employers. They do not care that this seems to run counter to their own data-privacy policies."
|
25 |
-
|
26 |
-
Monica soon discovered that deleting her Glassdoor account would not prevent them from storing her name, instead only deactivating her account. She decided to go through with a data erasure request, which Glassdoor estimated could take up to 30 days. In the meantime, her name remained on her profile, where it wasn't publicly available to employers but it could be used to link her to job reviews if Glassdoor introduced a bug in an update or data was ever breached, she feared.
|
27 |
-
|
28 |
-
"Since we require all users to have their names on their profiles, we will need to update your profile to reflect this," one Glassdoor employee wrote while reassuring her that "your anonymity will still be protected."
|
29 |
-
|
30 |
-
"No one has the ability to see your user profile and the contents within it, meaning no one, including your employer, will be able to see your details," Glassdoor's employee wrote.
|
31 |
-
|
32 |
-
"I do not consent," Monica responded. "I would delete my account before allowing that."
|
33 |
-
|
34 |
-
In a privacy policy, Glassdoor says, "if we have collected and processed your personal information with your consent, then you can withdraw your consent at any time," but Monica said Glassdoor did not give her the option and stored her name and recommended that she delete her account if she wanted her name removed. This would delete her reviews as well, employees confirmed. In response, Monica continued protesting the data storage, escalating her complaint to a Glassdoor manager who did not prove to be any more sympathetic than subordinates.
|
35 |
-
|
36 |
-
"I stand behind the decision that your name has to be placed on your profile and it cannot be reverted back to just your initials or nullified/anonymized from the platform," Glassdoor's manager wrote, confirming that Monica's case was now considered closed. "I am sorry that we disagree on this issue. We treat all users equally when it comes to what is eligible to be placed on the profile and what is not, but we know that there are times our users, such as yourself, may not always agree with us."
|
37 |
-
|
38 |
-
"You heard it from the manager of Glassdoor's community team: they treat all users equally badly," Monica's blog warned. "Soon my account will be gone. If you have one, you might consider doing the same."
|
39 |
-
"""""""""],
|
40 |
-
["""""
|
41 |
-
Glassdoor's spokesperson told Ars that Glassdoor does not comment on specific user accounts, only sharing a statement that does not seem to apply to Monica's situation.
|
42 |
-
|
43 |
-
"When a user provides information, either during the sign-up process or by uploading a resume, that information will automatically cross-populate between all Glassdoor services, including our community app Fishbowl," Glassdoor's spokesperson said. "When using Glassdoor and Fishbowl, there is always the option to remain anonymous. Users can choose to be fully anonymous or reveal elements of their identity, like company name or job title, while using our community service."
|
44 |
-
|
45 |
-
Monica told Ars that she never uploaded a resume or provided her name to Glassdoor. In her blog, she said that she would never share personally identifying information (PII) with the job review site because Glassdoor "storing my name along with that data puts me at risk."
|
46 |
-
|
47 |
-
"I pointed out that we've seen ample evidence that anybody with a juicy online database can be hacked, and the mere presence of that involuntary data was a problem," Monica's blog said.
|
48 |
-
|
49 |
-
"Data breaches are not uncommon these days, and anybody who works in tech knows that it's easy to introduce bugs when making software changes—and software is always undergoing change," Monica told Ars. "Even though reviews are supposed to be anonymous, having my name on the profile means that association is one JOIN away. That's a danger whether the threat is programming accidents or malicious attacks. And, frankly, a company with a policy of adding [personally identifiable information] without consent and over user objections is deeply concerning."
|
50 |
-
|
51 |
-
Mackey told Ars that there may be other risks to Glassdoor users. Employers could leverage real names or information used on Fishbowl to "potentially narrow and/or identify" Glassdoor reviewers. And the Fishbowl and Glassdoor data being combined means that information linking accounts could be subjected to legal requests, such as an employer subpoena or a law enforcement request for data.
|
52 |
-
|
53 |
-
Where before users "could take steps to make sure that no identifying information was in either of those things," that's "not the case now," Mackey said.
|
54 |
-
|
55 |
-
"I feel like what they're doing is sort of at cross purposes with the promises and goals of the Glassdoor review website," Mackey said. "If Glassdoor's purpose is really to empower employees to speak candidly about a variety of things that might occur in their work—whether that's the compensation, whether it's the working conditions, whether it's harassment or other workplace abuse—having the potential for your name to be associated with it, and having no choice but to provide Glassdoor with a real name is a problem. And it seems sort of counter to the whole values and animating purposes of Glassdoor's website."
|
56 |
-
"""""]
|
57 |
-
]
|
58 |
-
|
59 |
-
io1 = gr.Interface.load('huggingface/sshleifer/distilbart-cnn-12-6')
|
60 |
-
io2 = gr.Interface.load("huggingface/facebook/bart-large-cnn")
|
61 |
-
io3 = gr.Interface.load("huggingface/csebuetnlp/mT5_multilingual_XLSum")
|
62 |
-
io4 = gr.Interface.load("huggingface/google/pegasus-xsum")
|
63 |
-
io5 = gr.Interface.load("huggingface/PhLoDuTi/tns_ft5tech")
|
64 |
-
|
65 |
-
|
66 |
-
iface = Parallel(io1, io2, io3, io4, io5,
|
67 |
-
theme='huggingface',
|
68 |
-
inputs = gr.inputs.Textbox(lines = 10, label="Text"), title=title, description=description, examples=examples)
|
69 |
-
|
70 |
-
iface.launch(share=False)
|
|
|
1 |
+
#Code adapted from: https://huggingface.co/spaces/Daniela-C/Text-Summarizer-AI/blob/main/app.py
|
2 |
|
3 |
import gradio as gr
|
|
|
|
|
4 |
|
5 |
+
gr.load("models/facebook/bart-large-cnn").launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|