Fabrice-TIERCELIN commited on
Commit
c6bf77b
·
verified ·
1 Parent(s): 3566df3

Your computer must not enter into standby mode

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -37,6 +37,7 @@ tts.to(device_type)
37
 
38
  def update_output(output_number):
39
  return [
 
40
  gr.update(visible = (2 <= output_number)),
41
  gr.update(visible = (3 <= output_number)),
42
  gr.update(visible = (4 <= output_number)),
@@ -304,6 +305,8 @@ Leave a star on the Github <a href="https://github.com/coqui-ai/TTS">TTS</a>, wh
304
  variant = "primary",
305
  elem_id = "submit-id"
306
  )
 
 
307
 
308
  synthesised_audio_1 = gr.Audio(
309
  label="Synthesised Audio #1",
@@ -377,6 +380,7 @@ You can also install XTTS on your computer using docker but it's more complicate
377
  submit.click(fn = update_output, inputs = [
378
  generation_number
379
  ], outputs = [
 
380
  synthesised_audio_2,
381
  synthesised_audio_3,
382
  synthesised_audio_4,
 
37
 
38
  def update_output(output_number):
39
  return [
40
+ gr.update(visible = True),
41
  gr.update(visible = (2 <= output_number)),
42
  gr.update(visible = (3 <= output_number)),
43
  gr.update(visible = (4 <= output_number)),
 
305
  variant = "primary",
306
  elem_id = "submit-id"
307
  )
308
+
309
+ warning = gr.HTML(value = "<center><big>Your computer must <u>not</u> enter into standby mode.</big></center>", visible = False)
310
 
311
  synthesised_audio_1 = gr.Audio(
312
  label="Synthesised Audio #1",
 
380
  submit.click(fn = update_output, inputs = [
381
  generation_number
382
  ], outputs = [
383
+ warning,
384
  synthesised_audio_2,
385
  synthesised_audio_3,
386
  synthesised_audio_4,