barghavani commited on
Commit
527f2bc
1 Parent(s): c095a52

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -13,7 +13,10 @@ print(model_names)
13
  tts = TTS(m, gpu=False)
14
  tts.to("cpu") # no GPU or Amd
15
  #tts.to("cuda") # cuda only
16
-
 
 
 
17
 
18
  def predict(prompt, language, audio_file_pth, mic_file_path, use_mic, agree, request: gr.Request):
19
  # Due to abuses from somes user, and French Rights...
@@ -248,6 +251,7 @@ gr.Interface(
248
  "cs",
249
  "ar",
250
  "zh-cn",
 
251
  ],
252
  max_choices=1,
253
  value="en",
@@ -279,4 +283,4 @@ gr.Interface(
279
  description=description,
280
  article=article,
281
  examples=examples,
282
- ).queue().launch(debug=True)
 
13
  tts = TTS(m, gpu=False)
14
  tts.to("cpu") # no GPU or Amd
15
  #tts.to("cuda") # cuda only
16
+ # Instantiate the second model
17
+ second_model_name = "saillab/xtts_v2_fa_revision1"
18
+ tts2 = TTS(second_model_name, gpu=False)
19
+ tts2.to("cpu") # no GPU or Amd
20
 
21
  def predict(prompt, language, audio_file_pth, mic_file_path, use_mic, agree, request: gr.Request):
22
  # Due to abuses from somes user, and French Rights...
 
251
  "cs",
252
  "ar",
253
  "zh-cn",
254
+ "fa",
255
  ],
256
  max_choices=1,
257
  value="en",
 
283
  description=description,
284
  article=article,
285
  examples=examples,
286
+ ).queue().launch(debug=True)