SLAYEROFALL3050 commited on
Commit
8a8996c
·
1 Parent(s): 6a9646d

Update app

Browse files
Files changed (2) hide show
  1. README.md +2 -1
  2. app.py +5 -4
README.md CHANGED
@@ -11,4 +11,5 @@ pinned: false
11
 
12
  Link to Huggingface App: https://huggingface.co/spaces/SLAYEROFALL3050/Audio_Generator_Using_GAN
13
 
14
- # FIRE COML Fall 2022
 
 
11
 
12
  Link to Huggingface App: https://huggingface.co/spaces/SLAYEROFALL3050/Audio_Generator_Using_GAN
13
 
14
+ # FIRE COML Fall 2022
15
+
app.py CHANGED
@@ -6,7 +6,7 @@ from streamlit_tags import st_tags
6
  import json
7
 
8
  # CUSTOM
9
- from NLP.nlp import get_nearest_tags as nlp_tags
10
 
11
 
12
  f = open('NLP/tags.json') # OPEN JSON FILE
@@ -76,6 +76,7 @@ else:
76
  # SUBMIT TAGS
77
  if st.button("Submit Tags"):
78
  st.write("Tags are:")
79
- input = genre + mood + instrument
80
- input = nlp_tags(input)
81
- st.write(str(input))
 
 
6
  import json
7
 
8
  # CUSTOM
9
+ from NLP.nlp import get_nearest_tags
10
 
11
 
12
  f = open('NLP/tags.json') # OPEN JSON FILE
 
76
  # SUBMIT TAGS
77
  if st.button("Submit Tags"):
78
  st.write("Tags are:")
79
+ inp = genre + mood + instrument
80
+ st.write("Before: " + str(inp))
81
+ input = get_nearest_tags(inp)
82
+ st.write("After: " + str(input))