Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ def change_aud(text: str, speaker_wav, speaker_wav_file):
|
|
36 |
|
37 |
def show_error(text):
|
38 |
if len(text) == 0:
|
39 |
-
return gr.update(visible=True
|
40 |
else:
|
41 |
return gr.update(visible=False), gr.update(visible=True)
|
42 |
|
@@ -73,7 +73,7 @@ with gr.Blocks(css=css) as demo:
|
|
73 |
btn = gr.Button("Submit", variant="primary")
|
74 |
with gr.Column():
|
75 |
audio_output = gr.Audio(label="Output", visible=True)
|
76 |
-
error_box = gr.Textbox(label="WARNING", value="Input box cannot be blank!!", visible=False)
|
77 |
|
78 |
# gr.Examples(examples, fn=inference, inputs=[audio_file, text_input],
|
79 |
# outputs=audio_output, cache_examples=True)
|
|
|
36 |
|
37 |
def show_error(text):
|
38 |
if len(text) == 0:
|
39 |
+
return gr.update(visible=True), gr.update(visible=False)
|
40 |
else:
|
41 |
return gr.update(visible=False), gr.update(visible=True)
|
42 |
|
|
|
73 |
btn = gr.Button("Submit", variant="primary")
|
74 |
with gr.Column():
|
75 |
audio_output = gr.Audio(label="Output", visible=True)
|
76 |
+
error_box = gr.Textbox(label="WARNING", value="Input box cannot be blank!!", visible=False, elem_id="warning", elem_classes="feedback")
|
77 |
|
78 |
# gr.Examples(examples, fn=inference, inputs=[audio_file, text_input],
|
79 |
# outputs=audio_output, cache_examples=True)
|