rutsam commited on
Commit
60c42f1
·
1 Parent(s): ae0f23f

download snapshot

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -3,12 +3,12 @@ from typing import Optional
3
  import gradio as gr
4
  import numpy as np
5
  from TTS.api import TTS
6
- from huggingface_hub import hf_hub_download
7
 
8
 
9
  MAX_TXT_LEN = 100
10
 
11
- hf_hub_download(repo_id="DigitalUmuganda/Kinyarwanda_YourTTS")
12
  def generate_audio(text):
13
  if len(text) > MAX_TXT_LEN:
14
  text = text[:MAX_TXT_LEN]
 
3
  import gradio as gr
4
  import numpy as np
5
  from TTS.api import TTS
6
+ from huggingface_hub import snapshot_download
7
 
8
 
9
  MAX_TXT_LEN = 100
10
 
11
+ snapshot_download(repo_id="DigitalUmuganda/Kinyarwanda_YourTTS",revision="main")
12
  def generate_audio(text):
13
  if len(text) > MAX_TXT_LEN:
14
  text = text[:MAX_TXT_LEN]