Kevin Fink
commited on
Commit
·
c17b108
1
Parent(s):
7c58563
deve
Browse files
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)
|