gitgato commited on
Commit
6a72a1f
·
verified ·
1 Parent(s): 5a92355

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -3,8 +3,8 @@ import torch
3
  from datasets import load_dataset
4
  from transformers import pipeline, SpeechT5Processor, SpeechT5HifiGan, SpeechT5ForTextToSpeech
5
 
6
- model_id = "gitgato/tr-xtts" # update with your model id
7
- pipe = pipeline("text-to-speech", model="gitgato/tr-xtts")
8
  model = SpeechT5ForTextToSpeech.from_pretrained(model_id)
9
  vocoder = SpeechT5HifiGan.from_pretrained("microsoft/speecht5_hifigan")
10
  embeddings_dataset = load_dataset("Matthijs/cmu-arctic-xvectors", split="validation")
@@ -54,7 +54,7 @@ syntesize_speech_gradio = gr.Interface(
54
  synthesize_speech,
55
  inputs=gr.Textbox(label="Text", placeholder="Type something here..."),
56
  outputs=gr.Audio(label="Speech"),
57
- examples=["Je n'entrerai pas dans les détails, mais je profiterai des secondes qui me restent pour exposer la position ALDE sur le marquage CE, un des points cruciaux de ce rapport."],
58
  title=title,
59
  description=description,
60
  )
 
3
  from datasets import load_dataset
4
  from transformers import pipeline, SpeechT5Processor, SpeechT5HifiGan, SpeechT5ForTextToSpeech
5
 
6
+ model_id = "ovieyra21/mabama-tt5" # update with your model id
7
+ pipe = pipeline("text-to-speech", model="ovieyra21/mabama-tt5")
8
  model = SpeechT5ForTextToSpeech.from_pretrained(model_id)
9
  vocoder = SpeechT5HifiGan.from_pretrained("microsoft/speecht5_hifigan")
10
  embeddings_dataset = load_dataset("Matthijs/cmu-arctic-xvectors", split="validation")
 
54
  synthesize_speech,
55
  inputs=gr.Textbox(label="Text", placeholder="Type something here..."),
56
  outputs=gr.Audio(label="Speech"),
57
+ examples=["Hola, probando audio."],
58
  title=title,
59
  description=description,
60
  )