refactor: massive UX and beginner refactoring (Cookbook, Dashboard, Layout, Wording)

This commit is contained in:
Hitonabi
2026-06-20 22:06:04 +02:00
parent 9d05b2d011
commit e3be7fbfb5
11 changed files with 359 additions and 276 deletions
+4 -1
View File
@@ -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