Spaces:
Runtime error
Runtime error
shawarmabytes
commited on
Commit
·
89c7fb6
1
Parent(s):
f69d52d
Update app.py
Browse files
app.py
CHANGED
@@ -10,8 +10,6 @@ def tester(text):
|
|
10 |
#classifier = pipeline("sentiment-analysis", 'j-hartmann/emotion-english-distilroberta-base')
|
11 |
classifier = pipeline("sentiment-analysis", model='bhadresh-savani/distilbert-base-uncased-emotion')
|
12 |
|
13 |
-
|
14 |
-
https://www.youtube.com/watch?v=XVhEm62Uqog
|
15 |
|
16 |
results = classifier(text)
|
17 |
st.write(results[0]['label'])
|
@@ -36,7 +34,9 @@ def tester(text):
|
|
36 |
elif (results[0]['label']=="surprise"):
|
37 |
st_player("https://youtu.be/CmSKVW1v0xM")
|
38 |
|
39 |
-
|
|
|
|
|
40 |
|
41 |
return results[0]['label']
|
42 |
#return results
|
|
|
10 |
#classifier = pipeline("sentiment-analysis", 'j-hartmann/emotion-english-distilroberta-base')
|
11 |
classifier = pipeline("sentiment-analysis", model='bhadresh-savani/distilbert-base-uncased-emotion')
|
12 |
|
|
|
|
|
13 |
|
14 |
results = classifier(text)
|
15 |
st.write(results[0]['label'])
|
|
|
34 |
elif (results[0]['label']=="surprise"):
|
35 |
st_player("https://youtu.be/CmSKVW1v0xM")
|
36 |
|
37 |
+
|
38 |
+
elif (results[0]['label']=="love"):
|
39 |
+
st_player("https://www.youtube.com/watch?v=XVhEm62Uqog")
|
40 |
|
41 |
return results[0]['label']
|
42 |
#return results
|