Spaces:
Runtime error
Runtime error
Commit
·
50a5fa8
1
Parent(s):
60eaa60
my new commit
Browse files- app.py +1 -5
- pexels-photo-796602.png +0 -0
- pexels-photo-796602.webp +0 -0
app.py
CHANGED
@@ -8,10 +8,6 @@ import base64
|
|
8 |
import time
|
9 |
from PIL import Image
|
10 |
|
11 |
-
# Load Hugging Face banner image
|
12 |
-
banner_image = Image.open("pexels-photo-796602.png")
|
13 |
-
st.image(banner_image, caption="Hugging Face LaMDA Mini Summary")
|
14 |
-
|
15 |
# Model and tokenizer
|
16 |
model_checkpoint = "MBZUAI/LaMini-Flan-T5-783M"
|
17 |
model_tokenizer = T5Tokenizer.from_pretrained(model_checkpoint)
|
@@ -43,7 +39,7 @@ def language_model_pipeline(filepath):
|
|
43 |
return summarized_text
|
44 |
|
45 |
# User interface
|
46 |
-
title = st.title("PDF Summarization
|
47 |
uploaded_file = st.file_uploader('Upload your PDF file', type=['pdf'])
|
48 |
|
49 |
if uploaded_file is not None:
|
|
|
8 |
import time
|
9 |
from PIL import Image
|
10 |
|
|
|
|
|
|
|
|
|
11 |
# Model and tokenizer
|
12 |
model_checkpoint = "MBZUAI/LaMini-Flan-T5-783M"
|
13 |
model_tokenizer = T5Tokenizer.from_pretrained(model_checkpoint)
|
|
|
39 |
return summarized_text
|
40 |
|
41 |
# User interface
|
42 |
+
title = st.title("PDF Summarization")
|
43 |
uploaded_file = st.file_uploader('Upload your PDF file', type=['pdf'])
|
44 |
|
45 |
if uploaded_file is not None:
|
pexels-photo-796602.png
DELETED
Binary file (990 kB)
|
|
pexels-photo-796602.webp
DELETED
Binary file (81.3 kB)
|
|