ahassoun commited on
Commit
9a1196d
1 Parent(s): c9cdb67

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -23
app.py CHANGED
@@ -340,7 +340,6 @@ img[src*='#center'] {
340
  .dark .footer>p {
341
  background: #0b0f19;
342
  }
343
-
344
  .disclaimer {
345
  text-align: left;
346
  }
@@ -359,7 +358,6 @@ with gr.Blocks(css=css) as demo:
359
  Upload a clean 20 seconds WAV file of the vocal persona you want to mimic, <br />
360
  type your text-to-speech prompt and hit submit ! <br />
361
  </p>
362
-
363
  [![Duplicate this Space](https://huggingface.co/datasets/huggingface/badges/raw/main/duplicate-this-space-sm.svg#center)](https://huggingface.co/spaces/fffiloni/instant-TTS-Bark-cloning?duplicate=true)
364
 
365
  """)
@@ -372,26 +370,17 @@ with gr.Blocks(css=css) as demo:
372
  elem_id = "tts-prompt"
373
  )
374
 
375
- with gr.Tab("File upload"):
376
-
377
- with gr.Column():
378
-
379
- if file_upload_available == "True":
380
- audio_in = gr.Audio(
381
- label="WAV voice to clone",
382
- type="filepath",
383
- source="upload"
384
- )
385
- else:
386
- audio_in = gr.Audio(
387
- label="WAV voice to clone",
388
- type="filepath",
389
- source="upload",
390
- interactive = False
391
- )
392
- clean_sample = gr.Checkbox(label="Clean sample ?", value=False)
393
- hidden_audio_numpy = gr.Audio(type="numpy", visible=False)
394
- submit_btn = gr.Button("Submit")
395
 
396
  with gr.Tab("Microphone"):
397
  texts_samples = gr.Textbox(label = "Helpers",
@@ -588,4 +577,4 @@ with gr.Blocks(css=css) as demo:
588
  ]
589
  )
590
 
591
- demo.queue(api_open=False, max_size=10).launch()
 
340
  .dark .footer>p {
341
  background: #0b0f19;
342
  }
 
343
  .disclaimer {
344
  text-align: left;
345
  }
 
358
  Upload a clean 20 seconds WAV file of the vocal persona you want to mimic, <br />
359
  type your text-to-speech prompt and hit submit ! <br />
360
  </p>
 
361
  [![Duplicate this Space](https://huggingface.co/datasets/huggingface/badges/raw/main/duplicate-this-space-sm.svg#center)](https://huggingface.co/spaces/fffiloni/instant-TTS-Bark-cloning?duplicate=true)
362
 
363
  """)
 
370
  elem_id = "tts-prompt"
371
  )
372
 
373
+
374
+ with gr.Column():
375
+ audio_in = gr.Audio(
376
+ label="WAV voice to clone",
377
+ type="filepath",
378
+ source="upload",
379
+ interactive = False
380
+ )
381
+ clean_sample = gr.Checkbox(label="Clean sample ?", value=False)
382
+ hidden_audio_numpy = gr.Audio(type="numpy", visible=False)
383
+ submit_btn = gr.Button("Submit")
 
 
 
 
 
 
 
 
 
384
 
385
  with gr.Tab("Microphone"):
386
  texts_samples = gr.Textbox(label = "Helpers",
 
577
  ]
578
  )
579
 
580
+ demo.queue(api_open=False, max_size=10).launch()