li-plus / chatglm.cpp

C++ implementation of ChatGLM-6B & ChatGLM2-6B & ChatGLM3 & GLM4
MIT License
2.81k stars 327 forks source link

can not import chatglm_cpp, add the following code to the web-demo.py #327

Open lzj-r opened 1 week ago

lzj-r commented 1 week ago

import sys import os

module_folder = os.path.abspath(os.path.join(os.path.dirname(file), '..')) sys.path.insert(0, module_folder)