Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@ from transformers import AutoModel, AutoTokenizer
|
|
| 2 |
import gradio as gr
|
| 3 |
|
| 4 |
tokenizer = AutoTokenizer.from_pretrained("THUDM/chatglm-6b", trust_remote_code=True)
|
| 5 |
-
model = AutoModel.from_pretrained("THUDM/chatglm-6b", trust_remote_code=True).half.cuda()
|
| 6 |
model = model.eval()
|
| 7 |
|
| 8 |
MAX_TURNS = 20
|
|
|
|
| 2 |
import gradio as gr
|
| 3 |
|
| 4 |
tokenizer = AutoTokenizer.from_pretrained("THUDM/chatglm-6b", trust_remote_code=True)
|
| 5 |
+
model = AutoModel.from_pretrained("THUDM/chatglm-6b", trust_remote_code=True).half().cuda()
|
| 6 |
model = model.eval()
|
| 7 |
|
| 8 |
MAX_TURNS = 20
|