Spaces:
Sleeping
Sleeping
Update todset.py
Browse files
todset.py
CHANGED
@@ -8,7 +8,7 @@ def todset(text: str):
|
|
8 |
responses.append(i[1])
|
9 |
|
10 |
dset = {}
|
11 |
-
for sample in
|
12 |
dset[sample[0]] = responses.index(sample[1])
|
13 |
|
14 |
return (responses, dset)
|
|
|
8 |
responses.append(i[1])
|
9 |
|
10 |
dset = {}
|
11 |
+
for sample in lines:
|
12 |
dset[sample[0]] = responses.index(sample[1])
|
13 |
|
14 |
return (responses, dset)
|