KWRegan commited on
Commit
1a0df7f
·
1 Parent(s): 0b7d9d6
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -124,12 +124,12 @@ print("Welcome to the LifGenerator CPU script!")
124
  print("This script generates lif files using a Hugging Face model and greedy decoding.")
125
  print(f"Input file path: {args.input_file}")
126
  print(f"Output file path: {args.output_file}")
127
- INPUT_FILE = args.input_file
128
  INPUT_FILE_STEM = INPUT_FILE.split('.')[0]
129
  OUTPUT_FILE = args.output_file if args.output_file else (INPUT_FILE_STEM + ".lif")
130
  PROMPT_ID = args.prompt_id if args.prompt_id else INPUT_FILE
131
  PROMPT_TOPIC = args.prompt_topic if args.prompt_topic else INPUT_FILE
132
- MULTI_PV = args.multi_pv if args.multi_pv else 100
133
  NUM_WORDS = args.num_words if args.num_words else 10000
134
  NUM_TOKENS = args.num_tokens if args.num_tokens else 10000
135
  BEAM_WIDTH = args.beam_width if args.beam_width else 1
 
124
  print("This script generates lif files using a Hugging Face model and greedy decoding.")
125
  print(f"Input file path: {args.input_file}")
126
  print(f"Output file path: {args.output_file}")
127
+ INPUT_FILE = args.input_file if args.input_file else "Kangaroos.txt"
128
  INPUT_FILE_STEM = INPUT_FILE.split('.')[0]
129
  OUTPUT_FILE = args.output_file if args.output_file else (INPUT_FILE_STEM + ".lif")
130
  PROMPT_ID = args.prompt_id if args.prompt_id else INPUT_FILE
131
  PROMPT_TOPIC = args.prompt_topic if args.prompt_topic else INPUT_FILE
132
+ MULTI_PV = args.multi_pv if args.multi_pv else 1000
133
  NUM_WORDS = args.num_words if args.num_words else 10000
134
  NUM_TOKENS = args.num_tokens if args.num_tokens else 10000
135
  BEAM_WIDTH = args.beam_width if args.beam_width else 1