Spaces:
Running
Running
pragnakalp
commited on
Commit
·
5946634
1
Parent(s):
a612f12
Update app.py
Browse files
app.py
CHANGED
@@ -119,7 +119,7 @@ def get_emotion(text):
|
|
119 |
|
120 |
def generate_emotion(article):
|
121 |
table = {'Input':[], 'Detected Emotion':[]}
|
122 |
-
if article.strip()
|
123 |
sen_list = article
|
124 |
sen_list = sen_list.split('\n')
|
125 |
while("" in sen_list):
|
|
|
119 |
|
120 |
def generate_emotion(article):
|
121 |
table = {'Input':[], 'Detected Emotion':[]}
|
122 |
+
if article.strip():
|
123 |
sen_list = article
|
124 |
sen_list = sen_list.split('\n')
|
125 |
while("" in sen_list):
|