Update README.md
Browse files
README.md
CHANGED
|
@@ -3,7 +3,7 @@ library_name: transformers
|
|
| 3 |
tags: []
|
| 4 |
---
|
| 5 |
# Sample code
|
| 6 |
-
```python
|
| 7 |
from transformers import (
|
| 8 |
AutoModelForCausalLM,
|
| 9 |
AutoTokenizer,
|
|
@@ -65,9 +65,10 @@ for i in tqdm(range(100)):
|
|
| 65 |
jsonl_id = re.sub(".*/", "", 'ans')
|
| 66 |
with open(f"/content/drive/MyDrive/{jsonl_id}-outputs.jsonl", 'w', encoding='utf-8') as f:
|
| 67 |
for result in results:
|
| 68 |
-
json.dump(result, f, ensure_ascii=False)
|
| 69 |
f.write('\n')
|
| 70 |
-
|
|
|
|
| 71 |
# Model Card for Model ID
|
| 72 |
|
| 73 |
<!-- Provide a quick summary of what the model is/does. -->
|
|
|
|
| 3 |
tags: []
|
| 4 |
---
|
| 5 |
# Sample code
|
| 6 |
+
```python
|
| 7 |
from transformers import (
|
| 8 |
AutoModelForCausalLM,
|
| 9 |
AutoTokenizer,
|
|
|
|
| 65 |
jsonl_id = re.sub(".*/", "", 'ans')
|
| 66 |
with open(f"/content/drive/MyDrive/{jsonl_id}-outputs.jsonl", 'w', encoding='utf-8') as f:
|
| 67 |
for result in results:
|
| 68 |
+
json.dump(result, f, ensure_ascii=False)
|
| 69 |
f.write('\n')
|
| 70 |
+
|
| 71 |
+
```
|
| 72 |
# Model Card for Model ID
|
| 73 |
|
| 74 |
<!-- Provide a quick summary of what the model is/does. -->
|