davidlms commited on
Commit
509c6c9
1 Parent(s): 86bf0b9

Update letras-carnaval-cadiz.py

Browse files
Files changed (1) hide show
  1. letras-carnaval-cadiz.py +1 -1
letras-carnaval-cadiz.py CHANGED
@@ -93,7 +93,7 @@ class CadizCarnivalDataset(GeneratorBasedBuilder):
93
  data_all = data_accurate + data_midaccurate
94
 
95
  # Write the combined data to a temporary file
96
- with tempfile.NamedTemporaryFile(delete=False) as temp_file:
97
  json.dump(data_all, temp_file)
98
  temp_filepath = temp_file.name
99
 
 
93
  data_all = data_accurate + data_midaccurate
94
 
95
  # Write the combined data to a temporary file
96
+ with tempfile.NamedTemporaryFile(delete=False, mode='w') as temp_file:
97
  json.dump(data_all, temp_file)
98
  temp_filepath = temp_file.name
99