Spaces:
Runtime error
Runtime error
asdasd
Browse files
app.py
CHANGED
|
@@ -28,27 +28,6 @@ index_to_category = {
|
|
| 28 |
4:"Business"
|
| 29 |
}
|
| 30 |
|
| 31 |
-
sample_text = [
|
| 32 |
-
[
|
| 33 |
-
"""
|
| 34 |
-
Alan Horn, longtime film executive, to retire from Disney
|
| 35 |
-
Alan Horn, the film executive who helped turn Walt Disney Studios into the most powerful movie studios
|
| 36 |
-
in Hollywood and whose 50-year career has touched films from from “When Harry Met Sally...” to “The Dark Knight,” is retiring.”"""
|
| 37 |
-
],
|
| 38 |
-
[
|
| 39 |
-
"""JRisks of US electoral chaos deepen after Trump is barred from another state ballot
|
| 40 |
-
"""
|
| 41 |
-
|
| 42 |
-
],
|
| 43 |
-
["Engineers Working to Resolve Issue With Voyager 1 Computer"],
|
| 44 |
-
["""Nick David at the double as Harlequins put on a show against Gloucester
|
| 45 |
-
Harlequins 32-26 Gloucester
|
| 46 |
-
Visitors rally late but Quins make Twickenham advantage count
|
| 47 |
-
Gerard Meagher at Twickenham
|
| 48 |
-
It was not long ago that Marcus Smith was still adjusting to being back in the fly-half jersey after the World Cup but, make no mistake, he is in the groove now. Smith ultimately proved the difference as Harlequins put on a show in their annual fixture here before Gloucester rallied and almost threatened the most unlikely of comebacks late in the game.
|
| 49 |
-
"""]
|
| 50 |
-
]
|
| 51 |
-
|
| 52 |
description = """
|
| 53 |
This app will provide classifications for text from a news article.
|
| 54 |
The input is currently truncated at around 400 words so make sure to include the most important part of the article.
|
|
@@ -69,6 +48,5 @@ gr.Interface(
|
|
| 69 |
inputs=gr.Textbox(label="Article"),
|
| 70 |
outputs="label",
|
| 71 |
theme="huggingface",
|
| 72 |
-
examples=sample_text,
|
| 73 |
description=description,
|
| 74 |
).launch()
|
|
|
|
| 28 |
4:"Business"
|
| 29 |
}
|
| 30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
description = """
|
| 32 |
This app will provide classifications for text from a news article.
|
| 33 |
The input is currently truncated at around 400 words so make sure to include the most important part of the article.
|
|
|
|
| 48 |
inputs=gr.Textbox(label="Article"),
|
| 49 |
outputs="label",
|
| 50 |
theme="huggingface",
|
|
|
|
| 51 |
description=description,
|
| 52 |
).launch()
|