I Was Too Lazy to Organize My Files, So I Taught a Sloth (Gemma) to Do It
说明与用途
作者创建了 LazyDesk AI,使用本地 Gemma 3 (1B) 模型自动重命名文件、检测重复并在用户批准后生成 ZIP 包。
问题
The author’s Downloads folder contained messy filenames and duplicate files, and manual organization was tedious and unlikely to be performed.
结果
In a test with six messy files, the app detected a duplicate pair, processed all files in 32 seconds, and produced a ZIP containing only approved files in suggested folders. The author estimates saving ~3 minutes for six files, implying significant time savings for larger collections.
工作流
- Upload files to the Streamlit UI
- Ollama runs local Gemma 3 (1B) to suggest clean names and folders
- SHA‑256 hashes identify duplicate pairs
- Duplicate files are flagged and can be removed
- An editable approval table (pandas st.data_editor) displays suggestions
- User reviews and edits suggestions
- Approved files are packaged into a ZIP for download
证据
I built LazyDesk AI 🦥, a file decluttering app where a local open-weight Gemma model reads your messy files and suggests clean names and folders.
All 6 files processed in 32 seconds
Duplicate detective (SHA-256) caught the identical pair: duplicate_copy.txt and duplicate_original.txt
- 记录日期: 2026-10-26T07:11:13.369Z