Spaces:
Running
Running
poemsforaphrodite
commited on
Commit
•
7233731
1
Parent(s):
85be729
Update openvoice_app.py
Browse files- openvoice_app.py +3 -3
openvoice_app.py
CHANGED
@@ -103,7 +103,7 @@ with gr.Blocks(gr.themes.Glass()) as demo:
|
|
103 |
value="default",
|
104 |
)
|
105 |
ref_gr = gr.Audio(
|
106 |
-
label="
|
107 |
type="filepath",
|
108 |
sources=["upload"], # Allow only upload
|
109 |
)
|
@@ -111,12 +111,12 @@ with gr.Blocks(gr.themes.Glass()) as demo:
|
|
111 |
label="Your name and Product you bought",
|
112 |
value="Sam"
|
113 |
)
|
114 |
-
tts_button = gr.Button("
|
115 |
|
116 |
with gr.Column():
|
117 |
out_text_gr = gr.Text(label="Info")
|
118 |
audio_gr = gr.Audio(label="Replicated Sound", autoplay=True)
|
119 |
-
ref_audio_gr = gr.Audio(label="
|
120 |
|
121 |
tts_button.click(predict, [input_text_gr, style_gr, ref_gr, voice_name_gr], outputs=[out_text_gr, audio_gr, ref_audio_gr])
|
122 |
|
|
|
103 |
value="default",
|
104 |
)
|
105 |
ref_gr = gr.Audio(
|
106 |
+
label="Original audio",
|
107 |
type="filepath",
|
108 |
sources=["upload"], # Allow only upload
|
109 |
)
|
|
|
111 |
label="Your name and Product you bought",
|
112 |
value="Sam"
|
113 |
)
|
114 |
+
tts_button = gr.Button("Send", elem_id="send-btn", visible=True)
|
115 |
|
116 |
with gr.Column():
|
117 |
out_text_gr = gr.Text(label="Info")
|
118 |
audio_gr = gr.Audio(label="Replicated Sound", autoplay=True)
|
119 |
+
ref_audio_gr = gr.Audio(label="Original Audio Used")
|
120 |
|
121 |
tts_button.click(predict, [input_text_gr, style_gr, ref_gr, voice_name_gr], outputs=[out_text_gr, audio_gr, ref_audio_gr])
|
122 |
|