Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ def set_seed(seed):
|
|
24 |
torch.backends.cudnn.deterministic = True
|
25 |
torch.backends.cudnn.benchmark = False
|
26 |
|
27 |
-
set_seed(
|
28 |
# Load model directly
|
29 |
from transformers import AutoProcessor, AutoModelForTextToSpectrogram
|
30 |
|
@@ -142,7 +142,7 @@ slider = gr.Slider(
|
|
142 |
maximum=(len(dataset)-1),
|
143 |
value=86,
|
144 |
step=1,
|
145 |
-
label="Select a speaker"
|
146 |
)
|
147 |
|
148 |
# Create the text input component
|
|
|
24 |
torch.backends.cudnn.deterministic = True
|
25 |
torch.backends.cudnn.benchmark = False
|
26 |
|
27 |
+
set_seed(2)
|
28 |
# Load model directly
|
29 |
from transformers import AutoProcessor, AutoModelForTextToSpectrogram
|
30 |
|
|
|
142 |
maximum=(len(dataset)-1),
|
143 |
value=86,
|
144 |
step=1,
|
145 |
+
label="Select a speaker (Good examples: 86, 7)"
|
146 |
)
|
147 |
|
148 |
# Create the text input component
|