wendru18
commited on
Commit
·
cbf456f
1
Parent(s):
dbffdfc
changed example
Browse files
app.py
CHANGED
@@ -92,7 +92,7 @@ with main:
|
|
92 |
gr.Markdown("Predict personality traits from text using a RoBERTa model fine-tuned on a Big Five Personality Traits dataset.")
|
93 |
gr.Markdown("Explanations are given in the form of word attributions, where the color of the word indicates the importance of the word for the prediction. Green words increase the probability of the trait, red words decrease the probability of the trait.")
|
94 |
|
95 |
-
gr.Examples(["I love working and
|
96 |
|
97 |
text_input.render()
|
98 |
text_button = gr.Button("Predict")
|
|
|
92 |
gr.Markdown("Predict personality traits from text using a RoBERTa model fine-tuned on a Big Five Personality Traits dataset.")
|
93 |
gr.Markdown("Explanations are given in the form of word attributions, where the color of the word indicates the importance of the word for the prediction. Green words increase the probability of the trait, red words decrease the probability of the trait.")
|
94 |
|
95 |
+
gr.Examples(["I love working and meeting people!", "I am a bad person. :(", "I find it challenging to agree with my brother."], fn=text_to_personality_explainer, inputs=text_input, outputs=[result, explanation], cache_examples=False)
|
96 |
|
97 |
text_input.render()
|
98 |
text_button = gr.Button("Predict")
|