UjjwalVIT commited on
Commit
a5e68e0
1 Parent(s): 56d18f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -18,6 +18,7 @@ import torch
18
  from Text_analysis import *
19
  from Metadata import *
20
  from app_utils import *
 
21
 
22
 
23
  HTML_BANNER = """
@@ -25,6 +26,9 @@ HTML_BANNER = """
25
  <h1 style="color:white;text-align:center;">Summary app </h1>
26
  </div>
27
  """
 
 
 
28
 
29
 
30
  def main():
@@ -34,6 +38,7 @@ def main():
34
 
35
  if choice=='Summarization':
36
  stc.html(HTML_BANNER)
 
37
  st.subheader('summarization')
38
  raw_text=st.text_area("Enter the text you want to summarize")
39
  if st.button("Summarize"):
 
18
  from Text_analysis import *
19
  from Metadata import *
20
  from app_utils import *
21
+ from PIL import Image
22
 
23
 
24
  HTML_BANNER = """
 
26
  <h1 style="color:white;text-align:center;">Summary app </h1>
27
  </div>
28
  """
29
+ def load_image(file):
30
+ img = Image.open(file)
31
+ return img
32
 
33
 
34
  def main():
 
38
 
39
  if choice=='Summarization':
40
  stc.html(HTML_BANNER)
41
+ st.image(load_image('summary.png'))
42
  st.subheader('summarization')
43
  raw_text=st.text_area("Enter the text you want to summarize")
44
  if st.button("Summarize"):