Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
from transformers import AutoModel, AutoTokenizer
|
2 |
import gradio as gr
|
3 |
import mdtex2html
|
4 |
-
from utils import load_model_on_gpus
|
5 |
|
6 |
tokenizer = AutoTokenizer.from_pretrained("THUDM/chatglm2-6b", trust_remote_code=True)
|
7 |
model = AutoModel.from_pretrained("THUDM/chatglm2-6b", trust_remote_code=True).cuda()
|
|
|
1 |
from transformers import AutoModel, AutoTokenizer
|
2 |
import gradio as gr
|
3 |
import mdtex2html
|
|
|
4 |
|
5 |
tokenizer = AutoTokenizer.from_pretrained("THUDM/chatglm2-6b", trust_remote_code=True)
|
6 |
model = AutoModel.from_pretrained("THUDM/chatglm2-6b", trust_remote_code=True).cuda()
|