Spaces:
Sleeping
Sleeping
update model and tokenizer
Browse files
app.py
CHANGED
@@ -2,9 +2,9 @@ import gradio as gr
|
|
2 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
3 |
import torch
|
4 |
|
5 |
-
|
6 |
-
model =
|
7 |
-
tokenizer = AutoTokenizer.from_pretrained(
|
8 |
|
9 |
|
10 |
|
|
|
2 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
3 |
import torch
|
4 |
|
5 |
+
model = AutoModelForCausalLM.from_pretrained("DAMO-NLP-MT/polylm-1.7b")
|
6 |
+
model = PeftModel.from_pretrained(model, "fadliaulawi/polylm-1.7b-finetuned")
|
7 |
+
tokenizer = AutoTokenizer.from_pretrained("DAMO-NLP-MT/polylm-1.7b")
|
8 |
|
9 |
|
10 |
|