Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -24,13 +24,13 @@ def get_training_info(audio_file, pretrain):
|
|
24 |
sample_rate = audio.getframerate()
|
25 |
|
26 |
training_info = {
|
27 |
-
(0, 2): (150,
|
28 |
-
(2, 3): (200,
|
29 |
-
(3, 5): (250,
|
30 |
-
(5, 10): (300,
|
31 |
-
(10, 25): (500,
|
32 |
-
(25, 45): (700,
|
33 |
-
(45, 60): (1000,
|
34 |
}
|
35 |
|
36 |
for (min_duration, max_duration), (epochs, pretrain) in training_info.items():
|
|
|
24 |
sample_rate = audio.getframerate()
|
25 |
|
26 |
training_info = {
|
27 |
+
(0, 2): (150, 'OV2'),
|
28 |
+
(2, 3): (200, 'OV2'),
|
29 |
+
(3, 5): (250, 'OV2'),
|
30 |
+
(5, 10): (300, 'OV2'),
|
31 |
+
(10, 25): (500, 'Normal'),
|
32 |
+
(25, 45): (700, 'Normal'),
|
33 |
+
(45, 60): (1000, 'Normal')
|
34 |
}
|
35 |
|
36 |
for (min_duration, max_duration), (epochs, pretrain) in training_info.items():
|