Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from PIL import Image
|
|
4 |
from timeit import default_timer as timer
|
5 |
from tensorflow import keras
|
6 |
import torch
|
7 |
-
from transformers import AutoTokenizer, TFAutoModelForSeq2SeqLM,
|
8 |
import numpy as np
|
9 |
|
10 |
loaded_model = TFAutoModelForSeq2SeqLM.from_pretrained("runaksh/financial_summary_T5_base")
|
|
|
4 |
from timeit import default_timer as timer
|
5 |
from tensorflow import keras
|
6 |
import torch
|
7 |
+
from transformers import AutoTokenizer, TFAutoModelForSeq2SeqLM, create_optimizer, DataCollatorForSeq2Seq
|
8 |
import numpy as np
|
9 |
|
10 |
loaded_model = TFAutoModelForSeq2SeqLM.from_pretrained("runaksh/financial_summary_T5_base")
|