avisena commited on
Commit
b56e028
1 Parent(s): 0ca2d5b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -6,10 +6,10 @@ tokenizer = AutoTokenizer.from_pretrained("avisena/bart-base-job-info-summarizer
6
  model = AutoModelForSeq2SeqLM.from_pretrained("avisena/bart-base-job-info-summarizer")
7
 
8
  # Streamlit app
9
- st.title("Text Summarization App")
10
 
11
  # Text input
12
- text_input = st.text_area("Enter the text to summarize:", height=200)
13
 
14
  # Summarize button
15
  if st.button("Summarize"):
@@ -34,7 +34,7 @@ if st.button("Summarize"):
34
  summary = tokenizer.decode(summary_ids[0], skip_special_tokens=True, max_length=512, truncation='do_not_truncate')
35
 
36
  # Display the summarized text
37
- st.subheader("Summary")
38
  st.write(summary)
39
  else:
40
- st.warning("Please enter some text to summarize.")
 
6
  model = AutoModelForSeq2SeqLM.from_pretrained("avisena/bart-base-job-info-summarizer")
7
 
8
  # Streamlit app
9
+ st.title("Job Info Summarizer")
10
 
11
  # Text input
12
+ text_input = st.text_area("Enter the job info to summarize:", height=200)
13
 
14
  # Summarize button
15
  if st.button("Summarize"):
 
34
  summary = tokenizer.decode(summary_ids[0], skip_special_tokens=True, max_length=512, truncation='do_not_truncate')
35
 
36
  # Display the summarized text
37
+ st.subheader("Summarized Job Info")
38
  st.write(summary)
39
  else:
40
+ st.warning("Please enter the job info to summarize.")