Spaces:
Runtime error
Runtime error
freQuensy23
commited on
Commit
•
2edad32
1
Parent(s):
8b84f62
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
import transformers
|
3 |
import peft
|
4 |
|
5 |
-
|
6 |
model = peft.AutoPeftModelForCausalLM.from_pretrained(model_id)
|
7 |
tokenizer = transformers.AutoTokenizer.from_pretrained(model_id)
|
8 |
|
|
|
2 |
import transformers
|
3 |
import peft
|
4 |
|
5 |
+
model_id = 'freQuensy23/toxic-llama2'
|
6 |
model = peft.AutoPeftModelForCausalLM.from_pretrained(model_id)
|
7 |
tokenizer = transformers.AutoTokenizer.from_pretrained(model_id)
|
8 |
|