gorkemgoknar commited on
Commit
e2c9f4b
1 Parent(s): 5a7a07c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -52,20 +52,16 @@ from gradio_client import Client
52
  from huggingface_hub import InferenceClient
53
 
54
  # This will trigger downloading model
55
- print("Downloading if not downloaded Coqui XTTS V1.1")
56
 
57
  from TTS.utils.manage import ModelManager
58
- model_name = "tts_models/multilingual/multi-dataset/xtts_v1.1"
59
  ModelManager().download_model(model_name)
60
  model_path = os.path.join(get_user_data_dir("tts"), model_name.replace("/", "--"))
61
  print("XTTS downloaded")
62
 
63
 
64
  print("Loading XTTS")
65
- # Below will use model directly for inference
66
- model_path = os.path.join(
67
- get_user_data_dir("tts"), "tts_models--multilingual--multi-dataset--xtts_v1.1"
68
- )
69
  config = XttsConfig()
70
  config.load_json(os.path.join(model_path, "config.json"))
71
 
 
52
  from huggingface_hub import InferenceClient
53
 
54
  # This will trigger downloading model
55
+ print("Downloading if not downloaded Coqui XTTS V2")
56
 
57
  from TTS.utils.manage import ModelManager
58
+ model_name = "tts_models/multilingual/multi-dataset/xtts_v2"
59
  ModelManager().download_model(model_name)
60
  model_path = os.path.join(get_user_data_dir("tts"), model_name.replace("/", "--"))
61
  print("XTTS downloaded")
62
 
63
 
64
  print("Loading XTTS")
 
 
 
 
65
  config = XttsConfig()
66
  config.load_json(os.path.join(model_path, "config.json"))
67