Spaces:
Runtime error
Runtime error
NewBreaker
commited on
Commit
•
a5ffac3
1
Parent(s):
310cea3
Update app.py
Browse files
app.py
CHANGED
@@ -9,8 +9,8 @@ import gradio as gr
|
|
9 |
|
10 |
|
11 |
# chatglm-6b-int4 CPU,
|
12 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
13 |
-
model = AutoModel.from_pretrained("
|
14 |
|
15 |
|
16 |
|
|
|
9 |
|
10 |
|
11 |
# chatglm-6b-int4 CPU,
|
12 |
+
tokenizer = AutoTokenizer.from_pretrained("models/chatglm-6b-int4", trust_remote_code=True, revision="")
|
13 |
+
model = AutoModel.from_pretrained("models/chatglm-6b-int4", trust_remote_code=True, revision="").float()
|
14 |
|
15 |
|
16 |
|