Spaces:
Running
Running
Navid Arabi
commited on
Commit
·
385f637
1
Parent(s):
b42fd66
fix
Browse files- seed_db.py +3 -4
seed_db.py
CHANGED
@@ -18,7 +18,7 @@ def seed():
|
|
18 |
"""
|
19 |
CREATE TABLE IF NOT EXISTS tts_data (
|
20 |
id INT AUTO_INCREMENT PRIMARY KEY,
|
21 |
-
filename VARCHAR(
|
22 |
sentence TEXT
|
23 |
)
|
24 |
"""
|
@@ -28,9 +28,8 @@ def seed():
|
|
28 |
batch = []
|
29 |
|
30 |
for i, item in enumerate(dataset):
|
31 |
-
filename = item["
|
32 |
-
sentence = item["
|
33 |
-
print(filename)
|
34 |
batch.append((filename, sentence))
|
35 |
|
36 |
if len(batch) == batch_size:
|
|
|
18 |
"""
|
19 |
CREATE TABLE IF NOT EXISTS tts_data (
|
20 |
id INT AUTO_INCREMENT PRIMARY KEY,
|
21 |
+
filename VARCHAR(200) UNIQUE,
|
22 |
sentence TEXT
|
23 |
)
|
24 |
"""
|
|
|
28 |
batch = []
|
29 |
|
30 |
for i, item in enumerate(dataset):
|
31 |
+
filename = item["audio"]["path"]
|
32 |
+
sentence = item["sentence"]
|
|
|
33 |
batch.append((filename, sentence))
|
34 |
|
35 |
if len(batch) == batch_size:
|