runaksh commited on
Commit
eafc12d
·
1 Parent(s): 0380aa2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,7 +7,7 @@ import torch
7
  from transformers import AutoTokenizer, TFAutoModelForSeq2SeqLM, AutoModelForSequenceClassification, create_optimizer, DataCollatorForSeq2Seq
8
  import numpy as np
9
 
10
- loaded_model = TFAutoModelForSeq2SeqLM.from_pretrained("runaksh/financial_summary_T5_base", from_tf=True)
11
  loaded_tokenizer = AutoTokenizer.from_pretrained("runaksh/financial_summary_T5_base",local_files_only=True)
12
 
13
  # Function for generating summary
 
7
  from transformers import AutoTokenizer, TFAutoModelForSeq2SeqLM, AutoModelForSequenceClassification, create_optimizer, DataCollatorForSeq2Seq
8
  import numpy as np
9
 
10
+ loaded_model = TFAutoModelForSeq2SeqLM.from_pretrained("runaksh/financial_summary_T5_base")
11
  loaded_tokenizer = AutoTokenizer.from_pretrained("runaksh/financial_summary_T5_base",local_files_only=True)
12
 
13
  # Function for generating summary