Spaces:
Runtime error
Runtime error
Eunchan Lee
commited on
Commit
·
7d9500e
1
Parent(s):
378f4fe
21-12-13 vernew2
Browse files
CSZ.png
ADDED
|
app.py
CHANGED
|
@@ -7,16 +7,23 @@ import streamlit as st
|
|
| 7 |
import torch
|
| 8 |
#import transformers
|
| 9 |
from transformers import pipeline
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
#from transformers import
|
| 11 |
st.header("KNU- Abstractive Summarizer Machine!")
|
|
|
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
'''
|
| 17 |
T5: 너무 오래걸린다.
|
| 18 |
-
|
| 19 |
-
|
| 20 |
|
| 21 |
'''
|
| 22 |
plms =["facebook/bart-large-cnn", "google/pegasus-xsum", "t5-base" ]
|
|
@@ -80,7 +87,7 @@ if submit_button:
|
|
| 80 |
st.success("Congrats!!! ALL DONE!")
|
| 81 |
st.balloons()
|
| 82 |
|
| 83 |
-
balloon_button = st.
|
| 84 |
|
| 85 |
if balloon_button:
|
| 86 |
st.balloons()
|
|
|
|
| 7 |
import torch
|
| 8 |
#import transformers
|
| 9 |
from transformers import pipeline
|
| 10 |
+
from PIL import Image
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
image = Image.open('hb.jpg')
|
| 15 |
+
|
| 16 |
#from transformers import
|
| 17 |
st.header("KNU- Abstractive Summarizer Machine!")
|
| 18 |
+
st.image(image, caption='Welcome to KNU Summarizer')
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
'''
|
| 24 |
T5: 너무 오래걸린다.
|
| 25 |
+
BART: 60 sec 정도
|
| 26 |
+
Pegasus:
|
| 27 |
|
| 28 |
'''
|
| 29 |
plms =["facebook/bart-large-cnn", "google/pegasus-xsum", "t5-base" ]
|
|
|
|
| 87 |
st.success("Congrats!!! ALL DONE!")
|
| 88 |
st.balloons()
|
| 89 |
|
| 90 |
+
balloon_button = st.button(label='More Balloon?')
|
| 91 |
|
| 92 |
if balloon_button:
|
| 93 |
st.balloons()
|
hb.jpg
ADDED
|