Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -74,6 +74,7 @@ def main():
|
|
74 |
"""
|
75 |
)
|
76 |
driven_audio_type = gr.Textbox(value="upload", visible=False)
|
|
|
77 |
|
78 |
with gr.Row():
|
79 |
with gr.Column(variant="panel"):
|
@@ -85,8 +86,6 @@ def main():
|
|
85 |
with gr.TabItem("Upload"):
|
86 |
upload_driven_audio = gr.Audio(label="Upload audio", sources="upload", type="filepath")
|
87 |
upload_driven_audio.change(set_upload, outputs=driven_audio_type)
|
88 |
-
reference_audio_type = gr.Textbox(value="upload", visible=False)
|
89 |
-
|
90 |
with gr.TabItem("TTS"):
|
91 |
upload_reference_audio = gr.Audio(label="Upload Reference Audio", sources="upload", type="filepath")
|
92 |
upload_reference_audio.change(set_upload, outputs=reference_audio_type)
|
@@ -101,7 +100,6 @@ def main():
|
|
101 |
tts_driven_audio = gr.Audio(label="Synthesised Audio", type="filepath")
|
102 |
tts_button.click(fn=predict, inputs=[input_text, upload_reference_audio, microphone_reference_audio, reference_audio_type], outputs=[tts_driven_audio])
|
103 |
tts_button.click(set_tts, outputs=driven_audio_type)
|
104 |
-
|
105 |
with gr.Column(variant="panel"):
|
106 |
gen_video = gr.Video(label="Generated video", format="mp4", width=256)
|
107 |
with gr.Tabs(elem_id="talker_checkbox"):
|
|
|
74 |
"""
|
75 |
)
|
76 |
driven_audio_type = gr.Textbox(value="upload", visible=False)
|
77 |
+
reference_audio_type = gr.Textbox(value="upload", visible=False)
|
78 |
|
79 |
with gr.Row():
|
80 |
with gr.Column(variant="panel"):
|
|
|
86 |
with gr.TabItem("Upload"):
|
87 |
upload_driven_audio = gr.Audio(label="Upload audio", sources="upload", type="filepath")
|
88 |
upload_driven_audio.change(set_upload, outputs=driven_audio_type)
|
|
|
|
|
89 |
with gr.TabItem("TTS"):
|
90 |
upload_reference_audio = gr.Audio(label="Upload Reference Audio", sources="upload", type="filepath")
|
91 |
upload_reference_audio.change(set_upload, outputs=reference_audio_type)
|
|
|
100 |
tts_driven_audio = gr.Audio(label="Synthesised Audio", type="filepath")
|
101 |
tts_button.click(fn=predict, inputs=[input_text, upload_reference_audio, microphone_reference_audio, reference_audio_type], outputs=[tts_driven_audio])
|
102 |
tts_button.click(set_tts, outputs=driven_audio_type)
|
|
|
103 |
with gr.Column(variant="panel"):
|
104 |
gen_video = gr.Video(label="Generated video", format="mp4", width=256)
|
105 |
with gr.Tabs(elem_id="talker_checkbox"):
|