Spaces:
Runtime error
Runtime error
kevinwang676
commited on
Commit
•
7509e06
1
Parent(s):
d351985
Update app.py
Browse files
app.py
CHANGED
@@ -362,13 +362,14 @@ def denoise(video_full):
|
|
362 |
with gr.Blocks() as app:
|
363 |
gr.Markdown("# <center>🌊💕🎶 11Labs TTS - SRT文件一键AI配音</center>")
|
364 |
gr.Markdown("### <center>🌟 只需上传SRT文件和原版配音文件即可,每次一集视频AI自动配音!Developed by Kevin Wang </center>")
|
365 |
-
with gr.Tab("
|
366 |
-
|
367 |
-
|
368 |
-
|
|
|
369 |
|
370 |
btn_convert.click(denoise, [inp_video], [out_audio])
|
371 |
-
with gr.Tab("AI配音"):
|
372 |
with gr.Row():
|
373 |
with gr.Column():
|
374 |
inp0 = gr.Textbox(type='password', label='请输入您的11Labs API Key')
|
|
|
362 |
with gr.Blocks() as app:
|
363 |
gr.Markdown("# <center>🌊💕🎶 11Labs TTS - SRT文件一键AI配音</center>")
|
364 |
gr.Markdown("### <center>🌟 只需上传SRT文件和原版配音文件即可,每次一集视频AI自动配音!Developed by Kevin Wang </center>")
|
365 |
+
with gr.Tab("📺视频转音频"):
|
366 |
+
with gr.Row():
|
367 |
+
inp_video = gr.Video(label="请上传一集包含原声配音的视频", info="需要是.mp4视频文件")
|
368 |
+
btn_convert = gr.Button("视频文件转音频", variant="primary")
|
369 |
+
out_audio = gr.Audio(label="视频对应的音频文件,可以下载至本地后进行降噪处理", type="filepath")
|
370 |
|
371 |
btn_convert.click(denoise, [inp_video], [out_audio])
|
372 |
+
with gr.Tab("🎶AI配音"):
|
373 |
with gr.Row():
|
374 |
with gr.Column():
|
375 |
inp0 = gr.Textbox(type='password', label='请输入您的11Labs API Key')
|