m-ric HF staff commited on
Commit
f3f39fc
β€’
1 Parent(s): e774464

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -114,8 +114,8 @@ STYLE = """
114
  from transformers import GPT2Tokenizer, AutoModelForCausalLM, AutoTokenizer
115
  import numpy as np
116
 
117
- tokenizer = AutoTokenizer.from_pretrained("Locutusque/TinyMistral-248M-v2")
118
- model = AutoModelForCausalLM.from_pretrained("Locutusque/TinyMistral-248M-v2")
119
  tokenizer.pad_token_id = tokenizer.eos_token_id
120
  print("Loading finished.")
121
  def generate_html(token, node):
 
114
  from transformers import GPT2Tokenizer, AutoModelForCausalLM, AutoTokenizer
115
  import numpy as np
116
 
117
+ tokenizer = AutoTokenizer.from_pretrained("gpt2")
118
+ model = AutoModelForCausalLM.from_pretrained("gpt2")
119
  tokenizer.pad_token_id = tokenizer.eos_token_id
120
  print("Loading finished.")
121
  def generate_html(token, node):