Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
|