shawarmabytes commited on
Commit
ff47006
1 Parent(s): cf3860f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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
- st.write(<iframe width="560" height="315" src="https://www.youtube.com/embed/kkIabnfvJI8" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>)
 
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"):