Spaces:
Sleeping
Sleeping
Fixed syntax error in for loop
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ dataset = load_dataset("alpha_test_data.txt", split="test")
|
|
| 9 |
|
| 10 |
def read_dataset(dataset):
|
| 11 |
text = []
|
| 12 |
-
|
| 13 |
text.append(item['text'])
|
| 14 |
return "\n".join(text)
|
| 15 |
|
|
|
|
| 9 |
|
| 10 |
def read_dataset(dataset):
|
| 11 |
text = []
|
| 12 |
+
for item in dataset:
|
| 13 |
text.append(item['text'])
|
| 14 |
return "\n".join(text)
|
| 15 |
|