npc0 commited on
Commit
f917fe1
·
1 Parent(s): 67959d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -5,7 +5,9 @@ from epub2txt import epub2txt
5
  if not os.path.exists("./chatglm2-6b-int4.flm"):
6
  os.system("git clone --recurse-submodules https://github.com/ztxz16/fastllm.git")
7
  os.system("cd fastllm; mkdir build; cd build; cmake ..; make -j; cd tools; python setup.py install --user --prefix=")
8
- # os.system("wget https://huggingface.co/huangyuyang/chatglm2-6b-int4.flm/resolve/main/chatglm2-6b-int4.flm")
 
 
9
 
10
  from fastllm_pytools import llm
11
  model = llm.model("./chatglm2-6b-int4.flm")
 
5
  if not os.path.exists("./chatglm2-6b-int4.flm"):
6
  os.system("git clone --recurse-submodules https://github.com/ztxz16/fastllm.git")
7
  os.system("cd fastllm; mkdir build; cd build; cmake ..; make -j; cd tools; python setup.py install --user --prefix=")
8
+ os.system("wget https://huggingface.co/huangyuyang/chatglm2-6b-int4.flm/resolve/main/chatglm2-6b-int4.flm")
9
+ os.execv(__file__, sys.argv)
10
+ exit()
11
 
12
  from fastllm_pytools import llm
13
  model = llm.model("./chatglm2-6b-int4.flm")