xzuyn commited on
Commit
d0d9c07
·
1 Parent(s): e6c9dfb

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][:] # Limit to the first 50 lines
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 = [