npc0 commited on
Commit
d471a4c
·
1 Parent(s): bf7bb36

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -1,10 +1,12 @@
1
  import os
 
2
  import subprocess
3
 
4
  subprocess.run(["git", "lfs", "install"])
5
  subprocess.run(["git", "clone", "https://huggingface.co/K024/ChatGLM-6b-onnx-u8s8"])
6
  os.chdir("ChatGLM-6b-onnx-u8s8")
7
  subprocess.run(["pip", "install", "-r", "requirements.txt"])
 
8
 
9
  from model import ChatGLMModel#, chat_template
10
 
 
1
  import os
2
+ import sys
3
  import subprocess
4
 
5
  subprocess.run(["git", "lfs", "install"])
6
  subprocess.run(["git", "clone", "https://huggingface.co/K024/ChatGLM-6b-onnx-u8s8"])
7
  os.chdir("ChatGLM-6b-onnx-u8s8")
8
  subprocess.run(["pip", "install", "-r", "requirements.txt"])
9
+ sys.path.append(os.getcwd())
10
 
11
  from model import ChatGLMModel#, chat_template
12