Spaces:
Runtime error
Runtime error
Commit
·
6c35e3d
1
Parent(s):
5990e84
Update app.py
Browse files
app.py
CHANGED
@@ -13,16 +13,16 @@ def tester(text):
|
|
13 |
with open('joyplaylist.txt') as f:
|
14 |
contents = f.read()
|
15 |
components.html(contents,width=560,height=325)
|
16 |
-
|
17 |
-
elif (results[0]['label']=="anger"): #songs for anger emotion
|
18 |
-
with open('angryplaylist.txt') as f:
|
19 |
-
contents = f.read()
|
20 |
-
components.html(contents,width=560,height=325)
|
21 |
|
22 |
elif (results[0]['label']=="fear"):
|
23 |
with open('fearplaylist.txt') as f:
|
24 |
contents = f.read()
|
25 |
components.html(contents,width=560,height=325)
|
|
|
|
|
|
|
|
|
|
|
26 |
|
27 |
elif (results[0]['label']=="sadness"): #songs for sadness emotion
|
28 |
with open('sadplaylist.txt') as f:
|
|
|
13 |
with open('joyplaylist.txt') as f:
|
14 |
contents = f.read()
|
15 |
components.html(contents,width=560,height=325)
|
|
|
|
|
|
|
|
|
|
|
16 |
|
17 |
elif (results[0]['label']=="fear"):
|
18 |
with open('fearplaylist.txt') as f:
|
19 |
contents = f.read()
|
20 |
components.html(contents,width=560,height=325)
|
21 |
+
|
22 |
+
elif (results[0]['label']=="anger"): #songs for anger emotion
|
23 |
+
with open('angryplaylist.txt') as f:
|
24 |
+
contents = f.read()
|
25 |
+
components.html(contents,width=560,height=325)
|
26 |
|
27 |
elif (results[0]['label']=="sadness"): #songs for sadness emotion
|
28 |
with open('sadplaylist.txt') as f:
|