We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b473285 commit ef976c3Copy full SHA for ef976c3
1 file changed
gguf-py/examples/reader.py
@@ -2,12 +2,14 @@
2
import logging
3
import sys
4
from pathlib import Path
5
-from gguf.gguf_reader import GGUFReader
6
7
logger = logging.getLogger("reader")
8
+# Necessary to load the local gguf package
9
sys.path.insert(0, str(Path(__file__).parent.parent))
10
11
+from gguf.gguf_reader import GGUFReader
12
+
13
14
def read_gguf_file(gguf_file_path):
15
"""
0 commit comments