Update app with examples and cache of results
Browse files
app.py
CHANGED
|
@@ -121,7 +121,12 @@ demo = gr.Interface(
|
|
| 121 |
info="Detailed analysis including subjectivity prediction, class probabilities, and sentiment scores."
|
| 122 |
),
|
| 123 |
title='Subjectivity Detection',
|
| 124 |
-
description='Detect if a sentence is subjective or objective using a pre-trained model.'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 125 |
)
|
| 126 |
|
| 127 |
demo.launch()
|
|
|
|
| 121 |
info="Detailed analysis including subjectivity prediction, class probabilities, and sentiment scores."
|
| 122 |
),
|
| 123 |
title='Subjectivity Detection',
|
| 124 |
+
description='Detect if a sentence is subjective or objective using a pre-trained model.',
|
| 125 |
+
examples=[
|
| 126 |
+
['Nino Frassica, la moglie fuori controllo: "Fottiti in c***! Muori".'],
|
| 127 |
+
['Nino Frassica, la moglie fuori controllo dice fottiti in c***! Muori.'],
|
| 128 |
+
],
|
| 129 |
+
cache_examples=True,
|
| 130 |
)
|
| 131 |
|
| 132 |
demo.launch()
|