Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,7 @@ import os
|
|
2 |
import PyPDF2
|
3 |
from PIL import Image
|
4 |
import streamlit as st
|
|
|
5 |
|
6 |
model = T5ForConditionalGeneration.from_pretrained("t5-base")
|
7 |
tokenizer = T5TokenizerFast.from_pretrained("t5-base")
|
|
|
2 |
import PyPDF2
|
3 |
from PIL import Image
|
4 |
import streamlit as st
|
5 |
+
from transformers import T5ForConditionalGeneration,T5TokenizerFast
|
6 |
|
7 |
model = T5ForConditionalGeneration.from_pretrained("t5-base")
|
8 |
tokenizer = T5TokenizerFast.from_pretrained("t5-base")
|