Spaces:
Runtime error
Runtime error
YaTharThShaRma999
commited on
Commit
•
2585fc2
1
Parent(s):
b3b2603
Update app.py
Browse files
app.py
CHANGED
@@ -260,23 +260,16 @@ with gr.Blocks() as app:
|
|
260 |
'</div>')
|
261 |
with gr.Row():
|
262 |
with gr.Column():
|
263 |
-
prompt_text = gr.
|
264 |
label="Transcript of the Reference Audio",
|
265 |
-
value=example_reference,
|
266 |
-
choices=list(transcripts.keys())
|
267 |
)
|
268 |
inp_ref_audio = gr.Audio(
|
269 |
label="Reference Audio",
|
270 |
type="filepath",
|
271 |
-
interactive=
|
272 |
value=transcripts[example_reference]
|
273 |
)
|
274 |
transcripts_state = gr.State(value=transcripts)
|
275 |
-
prompt_text.change(
|
276 |
-
fn=change_reference_audio,
|
277 |
-
inputs=[prompt_text, transcripts_state],
|
278 |
-
outputs=[inp_ref_audio]
|
279 |
-
)
|
280 |
prompt_language = gr.State(value="ja")
|
281 |
with gr.Column():
|
282 |
text = gr.Textbox(label="Input Text", value="はいきなり、春の嵐のように突然訪れた。")
|
|
|
260 |
'</div>')
|
261 |
with gr.Row():
|
262 |
with gr.Column():
|
263 |
+
prompt_text = gr.Textbox(
|
264 |
label="Transcript of the Reference Audio",
|
|
|
|
|
265 |
)
|
266 |
inp_ref_audio = gr.Audio(
|
267 |
label="Reference Audio",
|
268 |
type="filepath",
|
269 |
+
interactive=True,
|
270 |
value=transcripts[example_reference]
|
271 |
)
|
272 |
transcripts_state = gr.State(value=transcripts)
|
|
|
|
|
|
|
|
|
|
|
273 |
prompt_language = gr.State(value="ja")
|
274 |
with gr.Column():
|
275 |
text = gr.Textbox(label="Input Text", value="はいきなり、春の嵐のように突然訪れた。")
|