Spaces:
Paused
Paused
fix deps & remove logs
Browse files
app.py
CHANGED
|
@@ -6,11 +6,11 @@ os.makedirs("checkpoints", exist_ok=True)
|
|
| 6 |
|
| 7 |
if not os.path.exists("checkpoints/text2semantic-medium-v1-2k.pth"):
|
| 8 |
print("Downloading text2semantic-medium-v1-2k.pth")
|
| 9 |
-
sp.run(["wget", "-O", "checkpoints/text2semantic-medium-v1-2k.pth", os.environ["CKPT_SEMANTIC"]])
|
| 10 |
|
| 11 |
if not os.path.exists("checkpoints/vq-gan-group-fsq-2x1024.pth"):
|
| 12 |
print("Downloading vq-gan-group-fsq-2x1024.pth")
|
| 13 |
-
sp.run(["wget", "-O", "checkpoints/vq-gan-group-fsq-2x1024.pth", os.environ["CKPT_VQGAN"]])
|
| 14 |
|
| 15 |
print("All checkpoints downloaded")
|
| 16 |
|
|
@@ -213,14 +213,12 @@ def build_app():
|
|
| 213 |
)
|
| 214 |
reference_audio = gr.Audio(
|
| 215 |
label="Reference Audio / 参考音频",
|
| 216 |
-
value="docs/assets/audios/0_input.wav",
|
| 217 |
type="filepath",
|
| 218 |
)
|
| 219 |
reference_text = gr.Textbox(
|
| 220 |
label="Reference Text / 参考文本",
|
| 221 |
placeholder="参考文本",
|
| 222 |
lines=1,
|
| 223 |
-
value="在一无所知中,梦里的一天结束了,一个新的「轮回」便会开始。",
|
| 224 |
)
|
| 225 |
|
| 226 |
with gr.Column(scale=3):
|
|
|
|
| 6 |
|
| 7 |
if not os.path.exists("checkpoints/text2semantic-medium-v1-2k.pth"):
|
| 8 |
print("Downloading text2semantic-medium-v1-2k.pth")
|
| 9 |
+
sp.run(["wget", "-q", "-O", "checkpoints/text2semantic-medium-v1-2k.pth", os.environ["CKPT_SEMANTIC"]])
|
| 10 |
|
| 11 |
if not os.path.exists("checkpoints/vq-gan-group-fsq-2x1024.pth"):
|
| 12 |
print("Downloading vq-gan-group-fsq-2x1024.pth")
|
| 13 |
+
sp.run(["wget", "-q", "-O", "checkpoints/vq-gan-group-fsq-2x1024.pth", os.environ["CKPT_VQGAN"]])
|
| 14 |
|
| 15 |
print("All checkpoints downloaded")
|
| 16 |
|
|
|
|
| 213 |
)
|
| 214 |
reference_audio = gr.Audio(
|
| 215 |
label="Reference Audio / 参考音频",
|
|
|
|
| 216 |
type="filepath",
|
| 217 |
)
|
| 218 |
reference_text = gr.Textbox(
|
| 219 |
label="Reference Text / 参考文本",
|
| 220 |
placeholder="参考文本",
|
| 221 |
lines=1,
|
|
|
|
| 222 |
)
|
| 223 |
|
| 224 |
with gr.Column(scale=3):
|