remove cuda
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ def chat(text):
|
|
| 12 |
|
| 13 |
if __name__ == '__main__':
|
| 14 |
tokenizer = AutoTokenizer.from_pretrained("THUDM/chatglm-6b", trust_remote_code=True)
|
| 15 |
-
model = AutoModel.from_pretrained("THUDM/chatglm-6b", trust_remote_code=True).half()
|
| 16 |
model.eval()
|
| 17 |
iface = gr.Interface(fn=chat, inputs="text", outputs="text")
|
| 18 |
iface.launch()
|
|
|
|
| 12 |
|
| 13 |
if __name__ == '__main__':
|
| 14 |
tokenizer = AutoTokenizer.from_pretrained("THUDM/chatglm-6b", trust_remote_code=True)
|
| 15 |
+
model = AutoModel.from_pretrained("THUDM/chatglm-6b", trust_remote_code=True).half()
|
| 16 |
model.eval()
|
| 17 |
iface = gr.Interface(fn=chat, inputs="text", outputs="text")
|
| 18 |
iface.launch()
|