Luigi commited on
Commit
b56b6ec
·
1 Parent(s): 07f3263

show cpu count in debug message

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -144,6 +144,8 @@ def caption_frame(frame, size, model_file, clip_file, interval_ms, sys_prompt, u
144
  timestamp = time.strftime('%H:%M:%S')
145
  debug_msgs.append(f"[{timestamp}] Reinitialized chat handler")
146
 
 
 
147
  t_start = time.time()
148
  resp = model_cache['llm'].create_chat_completion(
149
  messages=messages,
 
144
  timestamp = time.strftime('%H:%M:%S')
145
  debug_msgs.append(f"[{timestamp}] Reinitialized chat handler")
146
 
147
+ debug_msgs.append(f"[{timestamp}] CPU count = {os.cpu_count()}")
148
+
149
  t_start = time.time()
150
  resp = model_cache['llm'].create_chat_completion(
151
  messages=messages,