juniorjukeko commited on
Commit
4d6fe6c
·
1 Parent(s): 70fcabc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.value #doc_sections
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,