Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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("
|
10 |
|
11 |
# Text input
|
12 |
-
text_input = st.text_area("Enter the
|
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("
|
38 |
st.write(summary)
|
39 |
else:
|
40 |
-
st.warning("Please enter
|
|
|
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.")
|