lshzhm commited on
Commit
68cfefc
·
verified ·
1 Parent(s): ae4d7aa

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -1,4 +1,8 @@
1
- os.system("cd ./F5-TTS; pip install -e .")
 
 
 
 
2
 
3
 
4
  import spaces
@@ -9,7 +13,6 @@ from pathlib import Path
9
  import gradio as gr
10
  import torch
11
  import torchaudio
12
- import os
13
 
14
  import tempfile
15
 
 
1
+ import os
2
+ try:
3
+ import torchaudio
4
+ except ImportError:
5
+ os.system("cd ./F5-TTS; pip install -e .")
6
 
7
 
8
  import spaces
 
13
  import gradio as gr
14
  import torch
15
  import torchaudio
 
16
 
17
  import tempfile
18