Spaces:
Running
Running
Update app.py
Browse files
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"
|
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
|