Spaces:
Running
Running
admin
commited on
Commit
•
fe0a0f7
1
Parent(s):
dda2a55
fix req
Browse files- app.py +1 -1
- requirements.txt +7 -6
app.py
CHANGED
@@ -99,7 +99,7 @@ def generate_music(args, region: str):
|
|
99 |
print("\n", " Output tunes ".center(60, "#"))
|
100 |
start_time = time.time()
|
101 |
for i in range(num_tunes):
|
102 |
-
title_artist = f"T:{region} Fragment\nC:Generated by AI\n"
|
103 |
tune = f"X:{str(i + 1)}\n{title_artist + prompt}"
|
104 |
lines = re.split(r"(\n)", tune)
|
105 |
tune = ""
|
|
|
99 |
print("\n", " Output tunes ".center(60, "#"))
|
100 |
start_time = time.time()
|
101 |
for i in range(num_tunes):
|
102 |
+
title_artist = f"T:{region} Style Fragment\nC:Generated by AI\n"
|
103 |
tune = f"X:{str(i + 1)}\n{title_artist + prompt}"
|
104 |
lines = re.split(r"(\n)", tune)
|
105 |
tune = ""
|
requirements.txt
CHANGED
@@ -1,9 +1,10 @@
|
|
1 |
-
|
2 |
-
samplings==0.1.7
|
3 |
-
unidecode
|
4 |
music21
|
|
|
5 |
autopep8
|
|
|
|
|
|
|
|
|
6 |
pillow==9.4.0
|
7 |
-
|
8 |
-
torch
|
9 |
-
modelscope==1.15
|
|
|
1 |
+
torch
|
|
|
|
|
2 |
music21
|
3 |
+
pymupdf
|
4 |
autopep8
|
5 |
+
unidecode
|
6 |
+
modelscope[framework]
|
7 |
+
transformers==4.18.0
|
8 |
+
samplings==0.1.7
|
9 |
pillow==9.4.0
|
10 |
+
numpy==1.26.4
|
|
|
|