Bayhaqy commited on
Commit
75d538e
1 Parent(s): 6a578b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -7
app.py CHANGED
@@ -9,18 +9,16 @@ from newspaper import Article
9
  c1, c2 = st.columns([0.32, 2])
10
 
11
  with c1:
12
- st.image("images/newspaper.png", width=85)
13
 
14
  with c2:
15
  st.title("FastNews Article Summarizer")
16
-
17
  st.markdown("**Generate summaries of articles and blog posts using abstractive summarization with Google's Pegasus language model.**")
18
-
19
 
20
  # Sidebar content
21
  st.sidebar.subheader("About the app")
22
- st.sidebar.info("This app uses 🤗HuggingFace's [google/pegasus-cnn_dailymail](https://huggingface.co/google/pegasus-cnn_dailymail) model.\
23
- \nYou can find the source code [here](https://github.com/ivnlee/streamlit-text-summarizer)")
24
  st.sidebar.write("\n\n")
25
  st.sidebar.markdown("**Get a free API key from HuggingFace:**")
26
  st.sidebar.markdown("* Create a [free account](https://huggingface.co/join) or [login](https://huggingface.co/login)")
@@ -31,8 +29,6 @@ st.sidebar.divider()
31
  st.sidebar.write("Please make sure your article is in English and is not behind a paywall.")
32
  st.sidebar.write("\n\n")
33
  st.sidebar.divider()
34
- st.sidebar.caption("Created by [Ivan Lee](https://ivan-lee.medium.com/) using [Streamlit](https://streamlit.io/)🎈.")
35
-
36
 
37
  # Inputs
38
  st.subheader("Enter the URL of the article you want to summarize")
 
9
  c1, c2 = st.columns([0.32, 2])
10
 
11
  with c1:
12
+ st.image("https://github.com/ivnlee/streamlit-text-summarizer/blob/main/images/newspaper.png", width=85)
13
 
14
  with c2:
15
  st.title("FastNews Article Summarizer")
 
16
  st.markdown("**Generate summaries of articles and blog posts using abstractive summarization with Google's Pegasus language model.**")
17
+ st.caption("Created by Bayhaqy.")
18
 
19
  # Sidebar content
20
  st.sidebar.subheader("About the app")
21
+ st.sidebar.info("This app uses 🤗HuggingFace's [google/pegasus-cnn_dailymail](https://huggingface.co/google/pegasus-cnn_dailymail) model.")
 
22
  st.sidebar.write("\n\n")
23
  st.sidebar.markdown("**Get a free API key from HuggingFace:**")
24
  st.sidebar.markdown("* Create a [free account](https://huggingface.co/join) or [login](https://huggingface.co/login)")
 
29
  st.sidebar.write("Please make sure your article is in English and is not behind a paywall.")
30
  st.sidebar.write("\n\n")
31
  st.sidebar.divider()
 
 
32
 
33
  # Inputs
34
  st.subheader("Enter the URL of the article you want to summarize")