runtime backup
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
"""Parse the ollama library page text dump and list unique models."""
|
||||
import re, json, sys
|
||||
|
||||
raw = open('scripts/ollama_library_full.txt').read()
|
||||
with open('scripts/ollama_library_full.txt', encoding='utf-8') as f:
|
||||
raw = f.read()
|
||||
first_line = raw.split('\n')[0]
|
||||
# Each line is prefixed "N| " repeated; find the first { and the last }
|
||||
start = first_line.find('{')
|
||||
|
||||
Reference in New Issue
Block a user