Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -12,9 +12,9 @@ device = "cpu"
|
|
12 |
|
13 |
# Load Mini model and associated components with low memory usage
|
14 |
repo_id = "TArtx/parler-tts-mini-v1-finetuned-12"
|
15 |
-
model = ParlerTTSForConditionalGeneration.from_pretrained(repo_id
|
16 |
tokenizer = AutoTokenizer.from_pretrained("parler-tts/parler-tts-mini-v1")
|
17 |
-
feature_extractor = AutoFeatureExtractor.from_pretrained(
|
18 |
|
19 |
# Constants
|
20 |
SAMPLE_RATE = feature_extractor.sampling_rate
|
|
|
12 |
|
13 |
# Load Mini model and associated components with low memory usage
|
14 |
repo_id = "TArtx/parler-tts-mini-v1-finetuned-12"
|
15 |
+
model = ParlerTTSForConditionalGeneration.from_pretrained(repo_id).to(device)
|
16 |
tokenizer = AutoTokenizer.from_pretrained("parler-tts/parler-tts-mini-v1")
|
17 |
+
feature_extractor = AutoFeatureExtractor.from_pretrained(parler-tts/parler-tts-mini-v1)
|
18 |
|
19 |
# Constants
|
20 |
SAMPLE_RATE = feature_extractor.sampling_rate
|