Spaces:
Runtime error
Runtime error
Commit
·
8a8996c
1
Parent(s):
6a9646d
Update app
Browse files
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
|
| 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 |
-
|
| 80 |
-
|
| 81 |
-
|
|
|
|
|
|
| 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))
|