Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,6 +7,7 @@ from string import punctuation
|
|
| 7 |
import re
|
| 8 |
from parler_tts import ParlerTTSForConditionalGeneration
|
| 9 |
from transformers import AutoTokenizer, AutoFeatureExtractor, set_seed
|
|
|
|
| 10 |
|
| 11 |
# Device setup
|
| 12 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
|
|
|
| 7 |
import re
|
| 8 |
from parler_tts import ParlerTTSForConditionalGeneration
|
| 9 |
from transformers import AutoTokenizer, AutoFeatureExtractor, set_seed
|
| 10 |
+
from transformers import pipeline
|
| 11 |
|
| 12 |
# Device setup
|
| 13 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|