SLAYEROFALL3050 commited on
Commit
d47a361
·
1 Parent(s): d779d3a
Files changed (3) hide show
  1. MusicModel/music.py +8 -1
  2. app.py +2 -0
  3. requirements.txt +24 -1
MusicModel/music.py CHANGED
@@ -1,10 +1,17 @@
1
  # https://github.com/salu133445/musegan
2
 
3
  # IMPORTS
 
4
 
5
  # DOWNLOADS
6
 
7
  # MODEL
8
 
9
  # FINAL FUNCTION
10
- # Spits out audio file
 
 
 
 
 
 
 
1
  # https://github.com/salu133445/musegan
2
 
3
  # IMPORTS
4
+ from pypianoroll import Multitrack
5
 
6
  # DOWNLOADS
7
 
8
  # MODEL
9
 
10
  # FINAL FUNCTION
11
+ # Spits out audio file
12
+
13
+ def gen_audio():
14
+ for i in range(5):
15
+ print(str(i))
16
+
17
+ print("Generation Complete")
app.py CHANGED
@@ -1,5 +1,6 @@
1
  import streamlit as st
2
 
 
3
  # --------------------------- VARIABLES
4
 
5
 
@@ -12,3 +13,4 @@ st.write("Click the Button to Generate Audio")
12
  # SENTENCE BASED
13
  if st.button("GENERATE"):
14
  st.write("Here is the Generated Audio:")
 
 
1
  import streamlit as st
2
 
3
+ from MusicModel.music import gen_audio
4
  # --------------------------- VARIABLES
5
 
6
 
 
13
  # SENTENCE BASED
14
  if st.button("GENERATE"):
15
  st.write("Here is the Generated Audio:")
16
+ gen_audio()
requirements.txt CHANGED
@@ -1,4 +1,27 @@
1
  tensorflow==2.9.1
2
  gdown==4.4.0
3
  streamlit==1.10.0
4
- streamlit-tags==1.2.7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  tensorflow==2.9.1
2
  gdown==4.4.0
3
  streamlit==1.10.0
4
+ streamlit-tags==1.2.7
5
+
6
+ # For Musegan
7
+ setuptools==39.1.0
8
+ absl-py==0.4.1
9
+ astor==0.7.1
10
+ gast==0.2.0
11
+ grpcio==1.14.2
12
+ imageio==2.3.0
13
+ Markdown==2.6.11
14
+ mido==1.2.8
15
+ numpy==1.14.5
16
+ Pillow==5.2.0
17
+ pretty-midi==0.2.8
18
+ protobuf==3.6.1
19
+ pypianoroll==0.4.6
20
+ PyYAML==3.13
21
+ scipy==1.1.0
22
+ SharedArray==3.0.0
23
+ six==1.11.0
24
+ tensorboard==1.10.0
25
+ tensorflow-gpu==1.10.1
26
+ termcolor==1.1.0
27
+ Werkzeug==0.14.1