refactor: massive UX and beginner refactoring (Cookbook, Dashboard, Layout, Wording)
This commit is contained in:
+4
-1
@@ -61,11 +61,13 @@ def status():
|
||||
|
||||
size_bytes = None
|
||||
quant = ""
|
||||
filename = ""
|
||||
m_path = re.search(r'-(?:m|-model)\s+([^\s]+)', cmd)
|
||||
if m_path:
|
||||
path = m_path.group(1).replace("'", "").replace('"', '')
|
||||
if os.path.exists(path):
|
||||
size_bytes = os.path.getsize(path)
|
||||
filename = os.path.basename(path)
|
||||
q_match = re.search(r'(Q\d_[A-Z0-9_]+|IQ\d_[A-Z0-9_]+|fp16|bf16)\.gguf', path, flags=re.IGNORECASE)
|
||||
if q_match:
|
||||
quant = q_match.group(1).upper()
|
||||
@@ -86,7 +88,8 @@ def status():
|
||||
"ctx": ctx,
|
||||
"size_bytes": size_bytes,
|
||||
"quant": quant,
|
||||
"caps": caps
|
||||
"caps": caps,
|
||||
"filename": filename
|
||||
}
|
||||
}
|
||||
swap_ok = True
|
||||
|
||||
Reference in New Issue
Block a user