@@ -179,10 +179,10 @@ def main() -> None:
179
179
parser .add_argument (
180
180
'--picollm_model_path' ,
181
181
required = True ,
182
- help = 'Absolute path to the file containing LLM parameters.' )
182
+ help = 'Absolute path to the file containing LLM parameters (`.pllm`) .' )
183
183
parser .add_argument (
184
184
'--keyword-model_path' ,
185
- help = 'Absolute path to the keyword model file. If not set, `Picovoice` will be used as the wake phrase' )
185
+ help = 'Absolute path to the keyword model file (`.ppn`). If not set, `Picovoice` will be the wake phrase' )
186
186
parser .add_argument (
187
187
'--cheetah_endpoint_duration_sec' ,
188
188
type = float ,
@@ -267,7 +267,7 @@ def main() -> None:
267
267
268
268
pllm = picollm .create (access_key = access_key , model_path = picollm_model_path , device = picollm_device )
269
269
dialog = pllm .get_dialog ()
270
- log .info (f"→ picoLLM V{ pllm .version } { pllm .model } " )
270
+ log .info (f"→ picoLLM V{ pllm .version } < { pllm .model } > " )
271
271
272
272
main_connection , orca_process_connection = Pipe ()
273
273
orca_process = Process (target = orca_worker , args = (access_key , orca_process_connection , orca_warmup_sec ))
@@ -289,7 +289,7 @@ def handler(_, __) -> None:
289
289
signal .signal (signal .SIGINT , handler )
290
290
291
291
wake_word_detected = False
292
- human_request = ''
292
+ user_request = ''
293
293
endpoint_reached = False
294
294
utterance_end_sec = 0
295
295
@@ -308,24 +308,24 @@ def handler(_, __) -> None:
308
308
if wake_word_detected :
309
309
log .debug (f"[Porcupine RTF: { porcupine_profiler .rtf ():.3f} ]" )
310
310
log .info ("$ Wake word detected, utter your request or question ...\n " )
311
- log .info ("human > " , end = '' )
311
+ log .info ("User > " , end = '' )
312
312
elif not endpoint_reached :
313
313
pcm = mic .read ()
314
314
cheetah_profiler .tick ()
315
315
partial_transcript , endpoint_reached = cheetah .process (pcm )
316
316
cheetah_profiler .tock (pcm )
317
317
log .info (partial_transcript , end = '' )
318
- human_request += partial_transcript
318
+ user_request += partial_transcript
319
319
if endpoint_reached :
320
320
utterance_end_sec = time .time ()
321
321
cheetah_profiler .tick ()
322
322
remaining_transcript = cheetah .flush ()
323
323
cheetah_profiler .tock ()
324
- human_request += remaining_transcript
324
+ user_request += remaining_transcript
325
325
log .info (remaining_transcript , end = '\n \n ' )
326
326
log .debug (f"[Cheetah RTF: { cheetah_profiler .rtf ():.3f} ]" )
327
327
else :
328
- dialog .add_human_request (human_request )
328
+ dialog .add_human_request (user_request )
329
329
330
330
picollm_profiler = TPSProfiler ()
331
331
@@ -335,7 +335,7 @@ def llm_callback(text: str) -> None:
335
335
{'command' : 'synthesize' , 'text' : text , 'utterance_end_sec' : utterance_end_sec })
336
336
log .info (text , end = '' )
337
337
338
- log .info ("\n llm > " , end = '' )
338
+ log .info ("\n LLM > " , end = '' )
339
339
res = pllm .generate (
340
340
prompt = dialog .prompt (),
341
341
completion_token_limit = picollm_completion_token_limit ,
@@ -359,7 +359,7 @@ def llm_callback(text: str) -> None:
359
359
assert main_connection .recv ()['done' ]
360
360
361
361
wake_word_detected = False
362
- human_request = ''
362
+ user_request = ''
363
363
endpoint_reached = False
364
364
log .info ("\n $ Say `Picovoice` ..." )
365
365
finally :
0 commit comments