Update app.py
Browse files
app.py
CHANGED
@@ -410,7 +410,7 @@ class BaseTrainer(object):
|
|
410 |
hf_dir = "hf"
|
411 |
if not os.path.exists(args.out_path + "custom/" + hf_dir + "/"):
|
412 |
os.makedirs(args.out_path + "custom/" + hf_dir + "/")
|
413 |
-
sf.write(args.out_path + "custom/" + hf_dir + "/tmp.wav", ap[1]
|
414 |
self.audio_path = args.out_path + "custom/" + hf_dir + "/tmp.wav"
|
415 |
audio, ssr = librosa.load(self.audio_path)
|
416 |
ap = (ssr, audio)
|
@@ -649,7 +649,7 @@ demo = gr.Interface(
|
|
649 |
</div>\
|
650 |
',
|
651 |
article="\
|
652 |
-
Due to the limited resources in this space, we process the first
|
653 |
Try to develop this space locally for longer motion generation, e.g., 60s. <br/>\
|
654 |
Relevant links: [Project Page (https://pantomatrix.github.io/EMAGE/)\
|
655 |
",
|
|
|
410 |
hf_dir = "hf"
|
411 |
if not os.path.exists(args.out_path + "custom/" + hf_dir + "/"):
|
412 |
os.makedirs(args.out_path + "custom/" + hf_dir + "/")
|
413 |
+
sf.write(args.out_path + "custom/" + hf_dir + "/tmp.wav", ap[1], ap[0])
|
414 |
self.audio_path = args.out_path + "custom/" + hf_dir + "/tmp.wav"
|
415 |
audio, ssr = librosa.load(self.audio_path)
|
416 |
ap = (ssr, audio)
|
|
|
649 |
</div>\
|
650 |
',
|
651 |
article="\
|
652 |
+
Due to the limited resources in this space, we process the first 60s of your uploaded audio. <br/>\
|
653 |
Try to develop this space locally for longer motion generation, e.g., 60s. <br/>\
|
654 |
Relevant links: [Project Page (https://pantomatrix.github.io/EMAGE/)\
|
655 |
",
|