hynt commited on
Commit
0bcc2da
·
1 Parent(s): 918dc56

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

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  import gradio as gr
2
  from cached_path import cached_path
3
  import tempfile
@@ -12,11 +15,6 @@ from f5_tts.infer.utils_infer import (
12
  save_spectrogram,
13
  )
14
 
15
- import os
16
- from huggingface_hub import login
17
-
18
- os.system("pip install torch==2.4.0+cu124 torchaudio==2.4.0+cu124 --extra-index-url https://download.pytorch.org/whl/cu124")
19
-
20
  # Lấy token từ secrets
21
  hf_token = os.getenv("HUGGINGFACEHUB_API_TOKEN")
22
 
 
1
+ import os
2
+ from huggingface_hub import login
3
+ os.system("pip install torch==2.4.0+cu124 torchaudio==2.4.0+cu124 --extra-index-url https://download.pytorch.org/whl/cu124")
4
  import gradio as gr
5
  from cached_path import cached_path
6
  import tempfile
 
15
  save_spectrogram,
16
  )
17
 
 
 
 
 
 
18
  # Lấy token từ secrets
19
  hf_token = os.getenv("HUGGINGFACEHUB_API_TOKEN")
20