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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -110,11 +110,11 @@ STYLE = """
110
  }
111
  """
112
 
113
- from transformers import GPT2Tokenizer, AutoModelForCausalLM
114
  import numpy as np
115
 
116
- tokenizer = GPT2Tokenizer.from_pretrained("openai-community/gpt2")
117
- model = AutoModelForCausalLM.from_pretrained("openai-community/gpt2")
118
  tokenizer.pad_token_id = tokenizer.eos_token_id
119
  print("Loading finished.")
120
  def generate_html(token, node):
 
110
  }
111
  """
112
 
113
+ from transformers import GPT2Tokenizer, AutoModelForCausalLM, AutoTokenizer
114
  import numpy as np
115
 
116
+ tokenizer = AutoTokenizer.from_pretrained("microsoft/phi-2")
117
+ model = AutoModelForCausalLM.from_pretrained("microsoft/phi-2")
118
  tokenizer.pad_token_id = tokenizer.eos_token_id
119
  print("Loading finished.")
120
  def generate_html(token, node):