Florian Lux commited on
Commit
1d606bc
β€’
1 Parent(s): ed7f208

fix gdown version

Browse files
Files changed (2) hide show
  1. app.py +4 -5
  2. requirements.txt +1 -1
app.py CHANGED
@@ -29,8 +29,8 @@ class TTS_Interface:
29
  def __init__(self):
30
  os.makedirs("Models/HiFiGAN_combined", exist_ok=True)
31
  os.makedirs("Models/FastSpeech2_Meta", exist_ok=True)
32
- gdown.download(url="https://drive.google.com/uc?id=1-AhjmCR6DDI6rtzPIn9ksOxQyHKf6CbG", output="Models/FastSpeech2_Meta/best.pt")
33
- gdown.download(url="https://drive.google.com/uc?id=1-5sP-0JDUvKTjxhO3hUVJgArSUjuhU6P", output="Models/HiFiGAN_combined/best.pt")
34
  self.device = "cuda" if torch.cuda.is_available() else "cpu"
35
  self.model = Meta_FastSpeech2(device=self.device)
36
 
@@ -52,6 +52,7 @@ class TTS_Interface:
52
 
53
 
54
  meta_model = TTS_Interface()
 
55
 
56
  iface = gr.Interface(fn=meta_model.read,
57
  inputs=[gr.inputs.Textbox(lines=2, placeholder="write what you want the synthesis to read here...", label=" "),
@@ -71,7 +72,5 @@ iface = gr.Interface(fn=meta_model.read,
71
  theme="default",
72
  allow_flagging="never",
73
  allow_screenshot=False,
74
- article="""This is still a work in progress, models will be exchanged for better ones as soon as they are done. All of those languages are spoken by a single model. Speakers can be transferred across languages. More languages will be added soon.
75
-
76
- To learn more about the IMS Toucan Speech Synthesis Toolkit, [check out our GitHub page](https://github.com/DigitalPhonetics/IMS-Toucan).""")
77
  iface.launch(enable_queue=True)
 
29
  def __init__(self):
30
  os.makedirs("Models/HiFiGAN_combined", exist_ok=True)
31
  os.makedirs("Models/FastSpeech2_Meta", exist_ok=True)
32
+ gdown.download(id="1-AhjmCR6DDI6rtzPIn9ksOxQyHKf6CbG", output="Models/FastSpeech2_Meta/best.pt")
33
+ gdown.download(id="1-5sP-0JDUvKTjxhO3hUVJgArSUjuhU6P", output="Models/HiFiGAN_combined/best.pt")
34
  self.device = "cuda" if torch.cuda.is_available() else "cpu"
35
  self.model = Meta_FastSpeech2(device=self.device)
36
 
 
52
 
53
 
54
  meta_model = TTS_Interface()
55
+ article = "<p style='text-align: left'>This is still a work in progress, models will be exchanged for better ones as soon as they are done. All of those languages are spoken by a single model. Speakers can be transferred across languages. More languages will be added soon.</p><p style='text-align: center'><a href='https://github.com/DigitalPhonetics/IMS-Toucan' target='_blank'>Click here to learn more about the IMS Toucan Speech Synthesis Toolkit</a></p>"
56
 
57
  iface = gr.Interface(fn=meta_model.read,
58
  inputs=[gr.inputs.Textbox(lines=2, placeholder="write what you want the synthesis to read here...", label=" "),
 
72
  theme="default",
73
  allow_flagging="never",
74
  allow_screenshot=False,
75
+ article=article)
 
 
76
  iface.launch(enable_queue=True)
requirements.txt CHANGED
@@ -82,4 +82,4 @@ wcwidth~=0.2.5
82
  wincertstore~=0.2
83
  gradio
84
  jinja2
85
- gdown
 
82
  wincertstore~=0.2
83
  gradio
84
  jinja2
85
+ gdown==4.2.1