Update make_manythings-translations-alpaca.py
Browse files
make_manythings-translations-alpaca.py
CHANGED
@@ -3,7 +3,7 @@ import random
|
|
3 |
|
4 |
# Read the JSONL file and parse each line into a dictionary
|
5 |
with open('manythings-translations-randomized.jsonl', 'r') as file:
|
6 |
-
data = [json.loads(line) for line in file][:] #
|
7 |
|
8 |
# List of phrases to randomly choose from
|
9 |
instruction_phrases = [
|
|
|
3 |
|
4 |
# Read the JSONL file and parse each line into a dictionary
|
5 |
with open('manythings-translations-randomized.jsonl', 'r') as file:
|
6 |
+
data = [json.loads(line) for line in file][:] # Optionally limit the amount of lines to input.
|
7 |
|
8 |
# List of phrases to randomly choose from
|
9 |
instruction_phrases = [
|