Spaces:
Sleeping
Sleeping
Update helper_function.py
Browse files- helper_function.py +0 -4
helper_function.py
CHANGED
|
@@ -2,10 +2,6 @@ import numpy as np
|
|
| 2 |
import torch
|
| 3 |
from transformers import pipeline
|
| 4 |
from transformers import VitsModel, VitsTokenizer
|
| 5 |
-
from pathlib import Path
|
| 6 |
-
|
| 7 |
-
examples = list(Path('').glob('*mp3'))
|
| 8 |
-
examples.sort()
|
| 9 |
|
| 10 |
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
| 11 |
pipe = pipeline(
|
|
|
|
| 2 |
import torch
|
| 3 |
from transformers import pipeline
|
| 4 |
from transformers import VitsModel, VitsTokenizer
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
| 7 |
pipe = pipeline(
|