Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -36,6 +36,15 @@ os.system("python3 -m pip install -e .")
|
|
36 |
|
37 |
print(f"[{current_time()}] 日志:Git - 克隆 Github 的 MT3 模型到当前目录")
|
38 |
os.system("git clone --branch=main https://github.com/magenta/mt3")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
print(f"[{current_time()}] 日志:文件 - 移动 mt3 到当前目录并重命名为 mt3_tmp 并删除")
|
40 |
os.system("mv mt3 mt3_tmp; mv mt3_tmp/* .; rm -r mt3_tmp")
|
41 |
print(f"[{current_time()}] 日志:Python - 使用 pip 从 storage.googleapis.com 安装 jax[cuda11_local] nest-asyncio pyfluidsynth")
|
@@ -67,14 +76,6 @@ import seqio
|
|
67 |
import t5
|
68 |
import t5x
|
69 |
|
70 |
-
from mt3 import metrics_utils
|
71 |
-
from mt3 import models
|
72 |
-
from mt3 import network
|
73 |
-
from mt3 import note_sequences
|
74 |
-
from mt3 import preprocessors
|
75 |
-
from mt3 import spectrograms
|
76 |
-
from mt3 import vocabularies
|
77 |
-
|
78 |
import nest_asyncio
|
79 |
nest_asyncio.apply()
|
80 |
|
|
|
36 |
|
37 |
print(f"[{current_time()}] 日志:Git - 克隆 Github 的 MT3 模型到当前目录")
|
38 |
os.system("git clone --branch=main https://github.com/magenta/mt3")
|
39 |
+
|
40 |
+
from mt3 import metrics_utils
|
41 |
+
from mt3 import models
|
42 |
+
from mt3 import network
|
43 |
+
from mt3 import note_sequences
|
44 |
+
from mt3 import preprocessors
|
45 |
+
from mt3 import spectrograms
|
46 |
+
from mt3 import vocabularies
|
47 |
+
|
48 |
print(f"[{current_time()}] 日志:文件 - 移动 mt3 到当前目录并重命名为 mt3_tmp 并删除")
|
49 |
os.system("mv mt3 mt3_tmp; mv mt3_tmp/* .; rm -r mt3_tmp")
|
50 |
print(f"[{current_time()}] 日志:Python - 使用 pip 从 storage.googleapis.com 安装 jax[cuda11_local] nest-asyncio pyfluidsynth")
|
|
|
76 |
import t5
|
77 |
import t5x
|
78 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
import nest_asyncio
|
80 |
nest_asyncio.apply()
|
81 |
|