shawarmabytes commited on
Commit
10f256f
1 Parent(s): f301aac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -4,6 +4,10 @@ from transformers import pipeline
4
  from IPython.display import YouTubeVideo
5
  import random
6
 
 
 
 
 
7
  def tester(text):
8
  #classifier = pipeline("sentiment-analysis", model='arpanghoshal/EmoRoBERTa')
9
  #classifier = pipeline("sentiment-analysis", model='cardiffnlp/twitter-roberta-base-emotion')
@@ -30,6 +34,9 @@ def tester(text):
30
  #video = YouTubeVideo("1k8craCGpgs")
31
  #display(video)
32
  st_player("https://www.youtube.com/watch?v=BZsXcc_tC-o")
 
 
 
33
 
34
  elif (results[0]['label']=="surprise"):
35
  st_player("https://youtu.be/CmSKVW1v0xM")
 
4
  from IPython.display import YouTubeVideo
5
  import random
6
 
7
+
8
+ import streamlit as st
9
+ import streamlit.components.v1 as components
10
+
11
  def tester(text):
12
  #classifier = pipeline("sentiment-analysis", model='arpanghoshal/EmoRoBERTa')
13
  #classifier = pipeline("sentiment-analysis", model='cardiffnlp/twitter-roberta-base-emotion')
 
34
  #video = YouTubeVideo("1k8craCGpgs")
35
  #display(video)
36
  st_player("https://www.youtube.com/watch?v=BZsXcc_tC-o")
37
+ # embed streamlit docs in a streamlit app
38
+ components.iframe("https://open.spotify.com/playlist/3HnEO3B3lZ0wE2GnWbCdXf")
39
+
40
 
41
  elif (results[0]['label']=="surprise"):
42
  st_player("https://youtu.be/CmSKVW1v0xM")