Luigi commited on
Commit
9069c3e
·
1 Parent(s): 69c8775

show llama cpp version

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -11,6 +11,7 @@ import base64
11
  import gc
12
  import io
13
  from contextlib import redirect_stdout, redirect_stderr
 
14
 
15
  # ----------------------------------------
16
  # Model configurations: per-size prefixes and repos
@@ -117,6 +118,9 @@ def caption_frame(frame, size, model_file, clip_file, interval_ms, sys_prompt, u
117
  timestamp = time.strftime('%H:%M:%S')
118
  debug_msgs.append(f"[{timestamp}] Verbose mode: {verbose_mode}")
119
  timestamp = time.strftime('%H:%M:%S')
 
 
 
120
  debug_msgs.append(f"[{timestamp}] Received frame shape: {frame.shape}")
121
 
122
  timestamp = time.strftime('%H:%M:%S')
 
11
  import gc
12
  import io
13
  from contextlib import redirect_stdout, redirect_stderr
14
+ import sys, llama_cpp
15
 
16
  # ----------------------------------------
17
  # Model configurations: per-size prefixes and repos
 
118
  timestamp = time.strftime('%H:%M:%S')
119
  debug_msgs.append(f"[{timestamp}] Verbose mode: {verbose_mode}")
120
  timestamp = time.strftime('%H:%M:%S')
121
+ debug_msgs.append(f"[{timestamp}] llama_cpp version: {llama_cpp.__version__}")
122
+ debug_msgs.append(f"[{timestamp}] Python version: {sys.version.split()[0]}")
123
+ timestamp = time.strftime('%H:%M:%S')
124
  debug_msgs.append(f"[{timestamp}] Received frame shape: {frame.shape}")
125
 
126
  timestamp = time.strftime('%H:%M:%S')