Skip to content

Commit ef976c3

Browse files
authored
fix import
1 parent b473285 commit ef976c3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

gguf-py/examples/reader.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
import logging
33
import sys
44
from pathlib import Path
5-
from gguf.gguf_reader import GGUFReader
65

76
logger = logging.getLogger("reader")
87

8+
# Necessary to load the local gguf package
99
sys.path.insert(0, str(Path(__file__).parent.parent))
1010

11+
from gguf.gguf_reader import GGUFReader
12+
1113

1214
def read_gguf_file(gguf_file_path):
1315
"""

0 commit comments

Comments
 (0)