Spaces:
Running
Running
img
Browse files- .idea/GTAVC_SOVITS.iml +1 -1
- .idea/misc.xml +1 -1
- app.py +3 -6
.idea/GTAVC_SOVITS.iml
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
<content url="file://$MODULE_DIR$">
|
5 |
<excludeFolder url="file://$MODULE_DIR$/venv" />
|
6 |
</content>
|
7 |
-
<orderEntry type="jdk" jdkName="Python 3.9 (
|
8 |
<orderEntry type="sourceFolder" forTests="false" />
|
9 |
</component>
|
10 |
<component name="PyDocumentationSettings">
|
|
|
4 |
<content url="file://$MODULE_DIR$">
|
5 |
<excludeFolder url="file://$MODULE_DIR$/venv" />
|
6 |
</content>
|
7 |
+
<orderEntry type="jdk" jdkName="Python 3.9 (gta-sovits)" jdkType="Python SDK" />
|
8 |
<orderEntry type="sourceFolder" forTests="false" />
|
9 |
</component>
|
10 |
<component name="PyDocumentationSettings">
|
.idea/misc.xml
CHANGED
@@ -3,5 +3,5 @@
|
|
3 |
<component name="Black">
|
4 |
<option name="sdkName" value="Python 3.9 (GTAVC_SOVITS)" />
|
5 |
</component>
|
6 |
-
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.9 (
|
7 |
</project>
|
|
|
3 |
<component name="Black">
|
4 |
<option name="sdkName" value="Python 3.9 (GTAVC_SOVITS)" />
|
5 |
</component>
|
6 |
+
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.9 (gta-sovits)" project-jdk-type="Python SDK" />
|
7 |
</project>
|
app.py
CHANGED
@@ -99,7 +99,8 @@ if __name__ == '__main__':
|
|
99 |
gr.Markdown(
|
100 |
"# <center> 罪恶都市角色语音生成\n"
|
101 |
"## <center> 模型作者:B站[Cyber蝈蝈总](https://space.bilibili.com/37706580)\n"
|
102 |
-
"#### <center>
|
|
|
103 |
)
|
104 |
with gr.Tabs():
|
105 |
for (name, cover, (svc_fn, tts_fn)) in models:
|
@@ -128,11 +129,7 @@ if __name__ == '__main__':
|
|
128 |
tts_submit = gr.Button("生成", variant="primary")
|
129 |
|
130 |
with gr.Column():
|
131 |
-
gr.
|
132 |
-
'<div align="center">'
|
133 |
-
f'<img style="width:auto;height:300px;" src="file/{cover}">' if cover else ""
|
134 |
-
'</div>'
|
135 |
-
)
|
136 |
vc_output = gr.Audio(label="输出音频")
|
137 |
svc_submit.click(svc_fn, [svc_input, vc_transform, auto_f0, f0_predictor], vc_output)
|
138 |
tts_submit.click(tts_fn, [tts_input, gender, tts_rate, vc_transform, auto_f0, f0_predictor],
|
|
|
99 |
gr.Markdown(
|
100 |
"# <center> 罪恶都市角色语音生成\n"
|
101 |
"## <center> 模型作者:B站[Cyber蝈蝈总](https://space.bilibili.com/37706580)\n"
|
102 |
+
"#### <center> 传送门[GTASA](https://huggingface.shushu.icu/spaces/GroveStreet/GTA_SOVITS);[GTAV](https://huggingface.shushu.icu/spaces/GroveStreet/GTAV_SOVITS)\n"
|
103 |
+
"<center>使用此资源创作的作品请标明出处"
|
104 |
)
|
105 |
with gr.Tabs():
|
106 |
for (name, cover, (svc_fn, tts_fn)) in models:
|
|
|
129 |
tts_submit = gr.Button("生成", variant="primary")
|
130 |
|
131 |
with gr.Column():
|
132 |
+
gr.Image(cover, width=400, height=400)
|
|
|
|
|
|
|
|
|
133 |
vc_output = gr.Audio(label="输出音频")
|
134 |
svc_submit.click(svc_fn, [svc_input, vc_transform, auto_f0, f0_predictor], vc_output)
|
135 |
tts_submit.click(tts_fn, [tts_input, gender, tts_rate, vc_transform, auto_f0, f0_predictor],
|