Spaces:
Runtime error
Runtime error
Commit
·
a4292d5
1
Parent(s):
153b6a9
Rem subreddit that took up all the tokens. Add ceo example.
Browse files
app.py
CHANGED
|
@@ -83,7 +83,9 @@ SUBREDDITS = [
|
|
| 83 |
"GetMotivated",
|
| 84 |
"pokemongo",
|
| 85 |
"news",
|
| 86 |
-
|
|
|
|
|
|
|
| 87 |
"Fitness",
|
| 88 |
"Showerthoughts",
|
| 89 |
"OldSchoolCool",
|
|
@@ -516,12 +518,12 @@ Note: if app seems frozen, refreshing webpage may help. Sorry for the inconvenie
|
|
| 516 |
|
| 517 |
article = "The source code to generate the fine-tuned models can be found/reproduced here: https://github.com/2dot71mily/causing_gendering_pronouns_two"
|
| 518 |
|
| 519 |
-
|
| 520 |
REDDIT,
|
| 521 |
[BERT_LIKE_MODELS[0]],
|
| 522 |
"True",
|
| 523 |
"True",
|
| 524 |
-
|
| 525 |
]
|
| 526 |
building_example = [
|
| 527 |
WIKIBIO,
|
|
@@ -535,7 +537,7 @@ death_date_example = [
|
|
| 535 |
BERT_LIKE_MODELS,
|
| 536 |
"False",
|
| 537 |
"True",
|
| 538 |
-
'Died in DATE, she was recognized for her great accomplishments to the field of
|
| 539 |
]
|
| 540 |
neg_reddit_example = [
|
| 541 |
REDDIT,
|
|
@@ -556,7 +558,7 @@ gr.Interface(
|
|
| 556 |
gr.CheckboxGroup(
|
| 557 |
BERT_LIKE_MODELS,
|
| 558 |
type="value",
|
| 559 |
-
label="
|
| 560 |
),
|
| 561 |
gr.Dropdown(
|
| 562 |
["False", "True"],
|
|
@@ -592,5 +594,5 @@ gr.Interface(
|
|
| 592 |
title=title,
|
| 593 |
description=description,
|
| 594 |
article=article,
|
| 595 |
-
examples=[
|
| 596 |
).launch(debug=True)
|
|
|
|
| 83 |
"GetMotivated",
|
| 84 |
"pokemongo",
|
| 85 |
"news",
|
| 86 |
+
# removing below subreddit as most of the tokens are taken up it:
|
| 87 |
+
# ['ff', '##ff', '##ff', '##fu', '##u', '##u', '##u', '##u', '##u', '##u', '##u', '##u', '##u', '##u', '##u', ...]
|
| 88 |
+
#"fffffffuuuuuuuuuuuu",
|
| 89 |
"Fitness",
|
| 90 |
"Showerthoughts",
|
| 91 |
"OldSchoolCool",
|
|
|
|
| 518 |
|
| 519 |
article = "The source code to generate the fine-tuned models can be found/reproduced here: https://github.com/2dot71mily/causing_gendering_pronouns_two"
|
| 520 |
|
| 521 |
+
ceo_example = [
|
| 522 |
REDDIT,
|
| 523 |
[BERT_LIKE_MODELS[0]],
|
| 524 |
"True",
|
| 525 |
"True",
|
| 526 |
+
"She is the founder and CEO. She has led company growth from fledging start up to unicorn.",
|
| 527 |
]
|
| 528 |
building_example = [
|
| 529 |
WIKIBIO,
|
|
|
|
| 537 |
BERT_LIKE_MODELS,
|
| 538 |
"False",
|
| 539 |
"True",
|
| 540 |
+
'Died in DATE, she was recognized for her great accomplishments to the field of computer science.'
|
| 541 |
]
|
| 542 |
neg_reddit_example = [
|
| 543 |
REDDIT,
|
|
|
|
| 558 |
gr.CheckboxGroup(
|
| 559 |
BERT_LIKE_MODELS,
|
| 560 |
type="value",
|
| 561 |
+
label="Optional BERT base uncased model(s).",
|
| 562 |
),
|
| 563 |
gr.Dropdown(
|
| 564 |
["False", "True"],
|
|
|
|
| 594 |
title=title,
|
| 595 |
description=description,
|
| 596 |
article=article,
|
| 597 |
+
examples=[ceo_example, building_example, death_date_example, neg_reddit_example]
|
| 598 |
).launch(debug=True)
|