Spaces:
Runtime error
Runtime error
show cpu count in debug message
Browse files
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,
|