bankholdup commited on
Commit
973d3c8
1 Parent(s): 848eb9d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -8,10 +8,8 @@ from transformers import GPT2Tokenizer, GPT2LMHeadModel
8
  @st.cache(allow_output_mutation=True)
9
  def load_model():
10
  model_ckpt = "bankholdup/rugpt3_song_writer"
11
- # model_ckpt = "bankholdup/mgpt_song_writer"
12
  tokenizer = GPT2Tokenizer.from_pretrained(model_ckpt)
13
  model = GPT2LMHeadModel.from_pretrained(model_ckpt)
14
- # model = GPT2LMHeadModel.from_pretrained(model_ckpt, low_cpu_mem_usage=True)
15
  return tokenizer, model
16
 
17
  def set_seed(rng=100000):
 
8
  @st.cache(allow_output_mutation=True)
9
  def load_model():
10
  model_ckpt = "bankholdup/rugpt3_song_writer"
 
11
  tokenizer = GPT2Tokenizer.from_pretrained(model_ckpt)
12
  model = GPT2LMHeadModel.from_pretrained(model_ckpt)
 
13
  return tokenizer, model
14
 
15
  def set_seed(rng=100000):