Upload 3 files
Browse files
app.py
CHANGED
@@ -4,8 +4,8 @@ import datetime
|
|
4 |
import pytz
|
5 |
|
6 |
def current_time():
|
7 |
-
|
8 |
-
|
9 |
|
10 |
print(f"[{current_time()}] 开始部署空间...")
|
11 |
|
@@ -47,6 +47,9 @@ os.system("gsutil -q -m cp gs://magentadata/soundfonts/SGM-v2.01-Sal-Guit-Bass-V
|
|
47 |
#@title 导入和定义
|
48 |
print(f"[{current_time()}] 日志:导入 - 必要工具")
|
49 |
import functools
|
|
|
|
|
|
|
50 |
|
51 |
import numpy as np
|
52 |
import tensorflow.compat.v2 as tf
|
@@ -57,10 +60,6 @@ import jax
|
|
57 |
import librosa
|
58 |
import note_seq
|
59 |
|
60 |
-
import seqio
|
61 |
-
import t5
|
62 |
-
import t5x
|
63 |
-
|
64 |
from mt3 import metrics_utils
|
65 |
from mt3 import models
|
66 |
from mt3 import network
|
@@ -69,7 +68,6 @@ from mt3 import preprocessors
|
|
69 |
from mt3 import spectrograms
|
70 |
from mt3 import vocabularies
|
71 |
|
72 |
-
|
73 |
import nest_asyncio
|
74 |
nest_asyncio.apply()
|
75 |
|
|
|
4 |
import pytz
|
5 |
|
6 |
def current_time():
|
7 |
+
current = datetime.datetime.now(pytz.timezone('Asia/Shanghai')).strftime("%Y年-%m月-%d日 %H时:%M分:%S秒")
|
8 |
+
return current
|
9 |
|
10 |
print(f"[{current_time()}] 开始部署空间...")
|
11 |
|
|
|
47 |
#@title 导入和定义
|
48 |
print(f"[{current_time()}] 日志:导入 - 必要工具")
|
49 |
import functools
|
50 |
+
import seqio
|
51 |
+
import t5
|
52 |
+
import t5x
|
53 |
|
54 |
import numpy as np
|
55 |
import tensorflow.compat.v2 as tf
|
|
|
60 |
import librosa
|
61 |
import note_seq
|
62 |
|
|
|
|
|
|
|
|
|
63 |
from mt3 import metrics_utils
|
64 |
from mt3 import models
|
65 |
from mt3 import network
|
|
|
68 |
from mt3 import spectrograms
|
69 |
from mt3 import vocabularies
|
70 |
|
|
|
71 |
import nest_asyncio
|
72 |
nest_asyncio.apply()
|
73 |
|