shawarmabytes commited on
Commit
f4ca8de
1 Parent(s): d2ac7fa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -13,7 +13,8 @@ def tester(text):
13
  #tester(emo)
14
  generator = st.button("Generate Song!")
15
  if (generator == True):
16
-
 
17
  if (results[0]['label']=="joy"): #songs for joy emotion
18
  with open('joyplaylist.txt') as f:
19
  contents = f.read()
@@ -44,6 +45,11 @@ def tester(text):
44
 
45
  emo = st.text_input("Enter a text/phrase/sentence. A corresponding song will be recommended based on its emotion.", placeholder="tester po")
46
 
 
 
 
 
 
47
  tester(emo)
48
 
49
 
 
13
  #tester(emo)
14
  generator = st.button("Generate Song!")
15
  if (generator == True):
16
+ st.subheader(results[0]['label'])
17
+
18
  if (results[0]['label']=="joy"): #songs for joy emotion
19
  with open('joyplaylist.txt') as f:
20
  contents = f.read()
 
45
 
46
  emo = st.text_input("Enter a text/phrase/sentence. A corresponding song will be recommended based on its emotion.", placeholder="tester po")
47
 
48
+ md = st.button("Model Description")
49
+ if (md == True):
50
+ st.write("This application uses ")
51
+
52
+
53
  tester(emo)
54
 
55