Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -54,6 +54,7 @@ def convert_parquet_to_jsonl(parquet_filename, jsonl_filename):
|
|
| 54 |
json_str = json_str.replace('\\/', '/')
|
| 55 |
|
| 56 |
# Write the modified JSON string to the JSONL file
|
|
|
|
| 57 |
logger.info(f"Attempting to save to {jsonl_filename}")
|
| 58 |
with open(jsonl_filename, 'w', encoding='utf-8') as file:
|
| 59 |
file.write(json_str)
|
|
|
|
| 54 |
json_str = json_str.replace('\\/', '/')
|
| 55 |
|
| 56 |
# Write the modified JSON string to the JSONL file
|
| 57 |
+
jsonl_filename += '/train.jsonl'
|
| 58 |
logger.info(f"Attempting to save to {jsonl_filename}")
|
| 59 |
with open(jsonl_filename, 'w', encoding='utf-8') as file:
|
| 60 |
file.write(json_str)
|