Priyanka-Balivada
commited on
Commit
•
cf98b1f
1
Parent(s):
637e42e
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ with st.sidebar:
|
|
19 |
with st.spinner("Processing..."):
|
20 |
raw_text = get_pdf_text(pdf_docs)
|
21 |
|
22 |
-
st.write(raw_text)
|
23 |
|
24 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
25 |
|
@@ -36,6 +36,6 @@ summary_ids = model.generate(inputs["input_ids"], num_beams=4, min_length=30, ma
|
|
36 |
# Decode the summary
|
37 |
summary = tokenizer.decode(summary_ids[0], skip_special_tokens=True)
|
38 |
|
39 |
-
|
40 |
-
|
41 |
|
|
|
19 |
with st.spinner("Processing..."):
|
20 |
raw_text = get_pdf_text(pdf_docs)
|
21 |
|
22 |
+
# st.write(raw_text)
|
23 |
|
24 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
25 |
|
|
|
36 |
# Decode the summary
|
37 |
summary = tokenizer.decode(summary_ids[0], skip_special_tokens=True)
|
38 |
|
39 |
+
st.write("\n\nSummary:\n", summary)
|
40 |
+
st.write("\n\n\nOriginal text:\n", raw_text)
|
41 |
|