Update README.md
Browse files
README.md
CHANGED
@@ -99,9 +99,7 @@ for data in tqdm(datasets):
|
|
99 |
# Step 6: Save Results
|
100 |
Save the inference results to a .jsonl file. Replace <adapter_id> with the appropriate identifier.
|
101 |
```python
|
102 |
-
|
103 |
-
json_file_id = re.sub(".*/", "", adapter_id)
|
104 |
-
with open(f"/content/{json_file_id}_output.jsonl", 'w', encoding='utf-8') as f:
|
105 |
for result in results:
|
106 |
json.dump(result, f, ensure_ascii=False)
|
107 |
f.write('\n')
|
|
|
99 |
# Step 6: Save Results
|
100 |
Save the inference results to a .jsonl file. Replace <adapter_id> with the appropriate identifier.
|
101 |
```python
|
102 |
+
with open(f"/content/output.jsonl", 'w', encoding='utf-8') as f:
|
|
|
|
|
103 |
for result in results:
|
104 |
json.dump(result, f, ensure_ascii=False)
|
105 |
f.write('\n')
|