Spaces:
Runtime error
Runtime error
Commit
·
ff47006
1
Parent(s):
cf3860f
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
from streamlit_player import st_player
|
| 3 |
from transformers import pipeline
|
| 4 |
-
|
| 5 |
|
| 6 |
|
| 7 |
def tester(text):
|
|
@@ -27,7 +27,8 @@ def tester(text):
|
|
| 27 |
st_player("https://www.youtube.com/watch?v=1k8craCGpgs")
|
| 28 |
|
| 29 |
elif (results[0]['label']=="sadness"):
|
| 30 |
-
|
|
|
|
| 31 |
#st_player("https://www.youtube.com/embed/BZsXcc_tC-o?autoplay=1")
|
| 32 |
|
| 33 |
elif (results[0]['label']=="surprise"):
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
from streamlit_player import st_player
|
| 3 |
from transformers import pipeline
|
| 4 |
+
from IPython.display import YouTubeVideo
|
| 5 |
|
| 6 |
|
| 7 |
def tester(text):
|
|
|
|
| 27 |
st_player("https://www.youtube.com/watch?v=1k8craCGpgs")
|
| 28 |
|
| 29 |
elif (results[0]['label']=="sadness"):
|
| 30 |
+
video = YouTubeVideo("1k8craCGpgs")
|
| 31 |
+
display(video)
|
| 32 |
#st_player("https://www.youtube.com/embed/BZsXcc_tC-o?autoplay=1")
|
| 33 |
|
| 34 |
elif (results[0]['label']=="surprise"):
|