Spaces:
Sleeping
Sleeping
Commit ·
4d6fe6c
1
Parent(s): 70fcabc
Update app.py
Browse files
app.py
CHANGED
|
@@ -86,7 +86,7 @@ def preprocess_pdf_text(pdf_file): #(list_of_text):
|
|
| 86 |
for section in sections_doc:
|
| 87 |
doc_sections.append(section)
|
| 88 |
|
| 89 |
-
return pdf_file.
|
| 90 |
|
| 91 |
def summarize_pdf(pdf_file, api_key,
|
| 92 |
model_name, temperature, llm_max_tokens,
|
|
|
|
| 86 |
for section in sections_doc:
|
| 87 |
doc_sections.append(section)
|
| 88 |
|
| 89 |
+
return pdf_file.name + doc_sections[0].page_content
|
| 90 |
|
| 91 |
def summarize_pdf(pdf_file, api_key,
|
| 92 |
model_name, temperature, llm_max_tokens,
|