Spaces:
Runtime error
Runtime error
Commit
·
f3d1c24
1
Parent(s):
5886659
Update app.py
Browse files
app.py
CHANGED
@@ -24,12 +24,12 @@ def decide(text):
|
|
24 |
|
25 |
|
26 |
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
|
31 |
-
|
32 |
|
33 |
-
|
34 |
-
|
35 |
-
|
|
|
24 |
|
25 |
|
26 |
|
27 |
+
example_sentence_1 = "I hate the movie, they made no effort in making the movie. Waste of time!"
|
28 |
+
example_sentence_2 = "Awesome movie! Loved the way in which the hero acted."
|
29 |
+
examples = [[example_sentence_1], [example_sentence_2]]
|
30 |
|
31 |
+
description = "Write out a movie review to know the underlying sentiment."
|
32 |
|
33 |
+
gr.Interface(decide, inputs= gr.inputs.Textbox( lines=1, placeholder=None, default="", label=None), outputs='text', examples=examples,
|
34 |
+
title="Sentiment analysis of movie reviews",description=description, allow_flagging="auto",
|
35 |
+
flagging_dir='flagging records').launch(enable_queue = True, inline=False, share = True)
|