Spaces:
Running
Running
Upload app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,8 @@
|
|
1 |
-
os
|
|
|
|
|
|
|
|
|
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 |
|