Kevin Fink commited on
Commit
c17b108
·
1 Parent(s): 7c58563
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -248,7 +248,7 @@ def fine_tune_model(model, dataset_name, hub_id, api_key, num_epochs, batch_size
248
  def predict(text):
249
  config = AutoConfig.from_pretrained("shorecode/t5-efficient-tiny-nh8-summarizer")
250
  model = AutoModelForSeq2SeqLM.from_config(config)
251
- initialize_weights(model)
252
  tokenizer = AutoTokenizer.from_pretrained('shorecode/t5-efficient-tiny-nh8-summarizer')
253
  inputs = tokenizer(text, return_tensors="pt", padding=True, truncation=True)
254
  outputs = model(inputs)
 
248
  def predict(text):
249
  config = AutoConfig.from_pretrained("shorecode/t5-efficient-tiny-nh8-summarizer")
250
  model = AutoModelForSeq2SeqLM.from_config(config)
251
+ #initialize_weights(model)
252
  tokenizer = AutoTokenizer.from_pretrained('shorecode/t5-efficient-tiny-nh8-summarizer')
253
  inputs = tokenizer(text, return_tensors="pt", padding=True, truncation=True)
254
  outputs = model(inputs)