mrfakename commited on
Commit
7f66593
1 Parent(s): d24a68b

Sync from GitHub repo

Browse files

This Space is synced from the GitHub repo: https://github.com/SWivid/F5-TTS. Please submit contributions to the Space there

Files changed (1) hide show
  1. app.py +12 -12
app.py CHANGED
@@ -9,18 +9,6 @@ import torchaudio
9
  from cached_path import cached_path
10
  from pydub import AudioSegment
11
 
12
- from model import DiT, UNetT
13
- from model.utils import (
14
- save_spectrogram,
15
- )
16
- from model.utils_infer import (
17
- load_vocoder,
18
- load_model,
19
- preprocess_ref_audio_text,
20
- infer_process,
21
- remove_silence_for_generated_wav,
22
- )
23
-
24
  try:
25
  import spaces
26
  USING_SPACES = True
@@ -33,6 +21,18 @@ def gpu_decorator(func):
33
  else:
34
  return func
35
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  vocos = load_vocoder()
37
 
38
 
 
9
  from cached_path import cached_path
10
  from pydub import AudioSegment
11
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  try:
13
  import spaces
14
  USING_SPACES = True
 
21
  else:
22
  return func
23
 
24
+ from model import DiT, UNetT
25
+ from model.utils import (
26
+ save_spectrogram,
27
+ )
28
+ from model.utils_infer import (
29
+ load_vocoder,
30
+ load_model,
31
+ preprocess_ref_audio_text,
32
+ infer_process,
33
+ remove_silence_for_generated_wav,
34
+ )
35
+
36
  vocos = load_vocoder()
37
 
38