Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -54,6 +54,8 @@ from openai import OpenAI
|
|
54 |
|
55 |
import ffmpeg
|
56 |
|
|
|
|
|
57 |
html_denoise = """
|
58 |
<html>
|
59 |
<head>
|
@@ -70,16 +72,14 @@ html_denoise = """
|
|
70 |
<iframe
|
71 |
src="https://g-app-center-40055665-8145-0zp6jbv.openxlab.space"
|
72 |
frameBorder="0"
|
73 |
-
width="
|
74 |
height="900"
|
75 |
-
align="left"
|
76 |
></iframe>
|
77 |
|
78 |
</body>
|
79 |
</html>
|
80 |
"""
|
81 |
|
82 |
-
|
83 |
def convert(api_key, text, tgt, voice, save_path):
|
84 |
model = "FreeVC (24kHz)"
|
85 |
with torch.no_grad():
|
@@ -278,7 +278,7 @@ def convert_from_srt(apikey, filename, audio_full, voice, multilingual):
|
|
278 |
return "AI配音版.wav"
|
279 |
|
280 |
restart_markdown = ("""
|
281 |
-
|
282 |
""")
|
283 |
|
284 |
with gr.Blocks() as app:
|
|
|
54 |
|
55 |
import ffmpeg
|
56 |
|
57 |
+
|
58 |
+
|
59 |
html_denoise = """
|
60 |
<html>
|
61 |
<head>
|
|
|
72 |
<iframe
|
73 |
src="https://g-app-center-40055665-8145-0zp6jbv.openxlab.space"
|
74 |
frameBorder="0"
|
75 |
+
width="1280"
|
76 |
height="900"
|
|
|
77 |
></iframe>
|
78 |
|
79 |
</body>
|
80 |
</html>
|
81 |
"""
|
82 |
|
|
|
83 |
def convert(api_key, text, tgt, voice, save_path):
|
84 |
model = "FreeVC (24kHz)"
|
85 |
with torch.no_grad():
|
|
|
278 |
return "AI配音版.wav"
|
279 |
|
280 |
restart_markdown = ("""
|
281 |
+
### 若此页面无法正常显示,请点击[此链接](https://openxlab.org.cn/apps/detail/Kevin676/OpenAI-TTS)唤醒该程序!谢谢🍻
|
282 |
""")
|
283 |
|
284 |
with gr.Blocks() as app:
|