app.py
Browse files
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
|
| 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
|