Spaces:
Sleeping
Sleeping
DarwinAnim8or
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import gradio as gr
|
|
5 |
from transformers import AutoModelForCausalLM, GPT2Tokenizer
|
6 |
|
7 |
model_name = "DarwinAnim8or/GPT-NoSleep-v2"
|
8 |
-
tokenizer = GPT2Tokenizer.from_pretrained(
|
9 |
model = AutoModelForCausalLM.from_pretrained(model_name)
|
10 |
|
11 |
# Handle padding
|
|
|
5 |
from transformers import AutoModelForCausalLM, GPT2Tokenizer
|
6 |
|
7 |
model_name = "DarwinAnim8or/GPT-NoSleep-v2"
|
8 |
+
tokenizer = GPT2Tokenizer.from_pretrained("gpt2")
|
9 |
model = AutoModelForCausalLM.from_pretrained(model_name)
|
10 |
|
11 |
# Handle padding
|