Spaces:
Build error
Build error
tracking random.sample error
Browse files- __pycache__/utils.cpython-310.pyc +0 -0
- utils.py +1 -0
__pycache__/utils.cpython-310.pyc
CHANGED
|
Binary files a/__pycache__/utils.cpython-310.pyc and b/__pycache__/utils.cpython-310.pyc differ
|
|
|
utils.py
CHANGED
|
@@ -116,6 +116,7 @@ def character_replacement(text, num_errors=1):
|
|
| 116 |
|
| 117 |
indices = random.sample(range(len(text) - 1), num_errors)
|
| 118 |
|
|
|
|
| 119 |
|
| 120 |
for index in indices:
|
| 121 |
if text[index].lower() in keyboard:
|
|
|
|
| 116 |
|
| 117 |
indices = random.sample(range(len(text) - 1), num_errors)
|
| 118 |
|
| 119 |
+
print(indices)
|
| 120 |
|
| 121 |
for index in indices:
|
| 122 |
if text[index].lower() in keyboard:
|