Spaces:
Runtime error
Runtime error
MBear
commited on
Commit
•
3e34a37
1
Parent(s):
b348177
add model
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
from transformers import AutoTokenizer, AutoModel
|
3 |
tokenizer = AutoTokenizer.from_pretrained("THUDM/codegeex2-6b", trust_remote_code=True)
|
4 |
-
model = AutoModel.from_pretrained("THUDM/codegeex2-6b", trust_remote_code=True
|
5 |
model = model.eval()
|
6 |
|
7 |
def greet(prompt):
|
|
|
1 |
import gradio as gr
|
2 |
from transformers import AutoTokenizer, AutoModel
|
3 |
tokenizer = AutoTokenizer.from_pretrained("THUDM/codegeex2-6b", trust_remote_code=True)
|
4 |
+
model = AutoModel.from_pretrained("THUDM/codegeex2-6b", trust_remote_code=True)
|
5 |
model = model.eval()
|
6 |
|
7 |
def greet(prompt):
|