DarwinAnim8or commited on
Commit
fca49da
·
verified ·
1 Parent(s): 783fc3c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(model_name)
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