Spaces:
Sleeping
Sleeping
Remove author of the results
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ def summarize_pdf(pdf_file):
|
|
33 |
text = [utils.drop_non_relevant_text(utils.preprocess_text(x)) for x in text]
|
34 |
text = [' '.join(x) for x in text]
|
35 |
text=[x+'\n' if len(x) < 50 else generate_summary(x)+' \n' for x in text]
|
36 |
-
results = [title+' \n'
|
37 |
st.session_state["summary"] = ' '.join(results)
|
38 |
|
39 |
## Graphic interfaz
|
|
|
33 |
text = [utils.drop_non_relevant_text(utils.preprocess_text(x)) for x in text]
|
34 |
text = [' '.join(x) for x in text]
|
35 |
text=[x+'\n' if len(x) < 50 else generate_summary(x)+' \n' for x in text]
|
36 |
+
results = [title+' \n'] + text
|
37 |
st.session_state["summary"] = ' '.join(results)
|
38 |
|
39 |
## Graphic interfaz
|