Spaces:
Running
Running
Commit
·
42b63da
1
Parent(s):
5422b18
Update app.py
Browse files
app.py
CHANGED
@@ -53,7 +53,8 @@ if sys.platform == "darwin" and torch.backends.mps.is_available():
|
|
53 |
device = "mps"
|
54 |
os.environ["PYTORCH_ENABLE_MPS_FALLBACK"] = "1"
|
55 |
else:
|
56 |
-
device = "cuda"
|
|
|
57 |
|
58 |
def generate_audio(
|
59 |
text,
|
@@ -152,7 +153,7 @@ if __name__ == "__main__":
|
|
152 |
modelPaths.append(os.path.join(dirpath, filename))
|
153 |
with gr.Blocks() as app:
|
154 |
gr.Markdown(
|
155 |
-
f"少歌邦邦全员TTS
|
156 |
)
|
157 |
for band in BandList:
|
158 |
with gr.TabItem(band):
|
|
|
53 |
device = "mps"
|
54 |
os.environ["PYTORCH_ENABLE_MPS_FALLBACK"] = "1"
|
55 |
else:
|
56 |
+
#device = "cuda"
|
57 |
+
device = "cpu"
|
58 |
|
59 |
def generate_audio(
|
60 |
text,
|
|
|
153 |
modelPaths.append(os.path.join(dirpath, filename))
|
154 |
with gr.Blocks() as app:
|
155 |
gr.Markdown(
|
156 |
+
f"少歌邦邦全员TTS,使用本模型请严格遵守法律法规!\现已支持日语bert推理<a href='https://huggingface.co/spaces/Mahiruoshi/MyGO_VIts-bert/'>上一版本模型</a>及V1.0版本模型\n 发布二创作品请注明项目和本模型作者<a href='https://space.bilibili.com/19874615/'>B站@Mahiroshi</a>及项目链接\n从 <a href='https://nijigaku.top/2023/10/03/BangDreamTTS/'>我的博客站点</a> 查看使用说明</a>"
|
157 |
)
|
158 |
for band in BandList:
|
159 |
with gr.TabItem(band):
|