Update app.py
Browse files
app.py
CHANGED
@@ -13,10 +13,10 @@ Text: I hate apples
|
|
13 |
Sentiment analysis:
|
14 |
Sentiments: Negative
|
15 |
PPrint Key words: hate, aples
|
16 |
-
Text: I enjoy watching
|
17 |
Sentiment analysis:
|
18 |
Sentiments: Positive
|
19 |
-
PPrint Key words: enjoy
|
20 |
Text: I'm tired of this long process
|
21 |
Sentiment analysis:
|
22 |
Sentiments: Negative
|
@@ -58,8 +58,8 @@ sentiment_extr = gr.Interface(
|
|
58 |
inputs=gr.Textbox(label="Text input", type="text"),
|
59 |
outputs=gr.Textbox(label="Sentiments", type="text"),
|
60 |
title="Sentiment analysis and keywords extraction",
|
61 |
-
description="""
|
62 |
-
Enter one or two
|
63 |
For longer input, please allow 2-3 minutes as the model is running on small CPU. <br>
|
64 |
Base model: Flan-t5 from Google. <br>
|
65 |
Prompt tuned by Thuyen Truong for sentiment extraction.
|
|
|
13 |
Sentiment analysis:
|
14 |
Sentiments: Negative
|
15 |
PPrint Key words: hate, aples
|
16 |
+
Text: I enjoy watching it
|
17 |
Sentiment analysis:
|
18 |
Sentiments: Positive
|
19 |
+
PPrint Key words: enjoy
|
20 |
Text: I'm tired of this long process
|
21 |
Sentiment analysis:
|
22 |
Sentiments: Negative
|
|
|
58 |
inputs=gr.Textbox(label="Text input", type="text"),
|
59 |
outputs=gr.Textbox(label="Sentiments", type="text"),
|
60 |
title="Sentiment analysis and keywords extraction",
|
61 |
+
description="""
|
62 |
+
Enter one or two sentences in the Text Input and click "Submit" to see the sentiments extracted. <br>
|
63 |
For longer input, please allow 2-3 minutes as the model is running on small CPU. <br>
|
64 |
Base model: Flan-t5 from Google. <br>
|
65 |
Prompt tuned by Thuyen Truong for sentiment extraction.
|