MatteoFasulo commited on
Commit
5f70d00
·
verified ·
1 Parent(s): fa066f6

Update app with examples and cache of results

Browse files
Files changed (1) hide show
  1. app.py +6 -1
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()