hynt commited on
Commit
e808130
·
1 Parent(s): 7033b85

Push version 1 F5-TTS-Vietnamese-100h spaces

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py CHANGED
@@ -12,6 +12,16 @@ from f5_tts.infer.utils_infer import (
12
  save_spectrogram,
13
  )
14
 
 
 
 
 
 
 
 
 
 
 
15
  def post_process(text):
16
  text = " " + text + " "
17
  text = text.replace(" . . ", " . ")
 
12
  save_spectrogram,
13
  )
14
 
15
+ import os
16
+ from huggingface_hub import login
17
+
18
+ # Lấy token từ secrets
19
+ hf_token = os.getenv("f5-tts")
20
+
21
+ # Login vào Hugging Face
22
+ if hf_token:
23
+ login(token=hf_token)
24
+
25
  def post_process(text):
26
  text = " " + text + " "
27
  text = text.replace(" . . ", " . ")