minh commited on
Commit
eeae8fb
·
1 Parent(s): c5775b4

change upload output

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -81,7 +81,7 @@ def convert_PDF(pdf_obj, chatbot_engine):
81
  top_k_docs_for_context=3)
82
 
83
  # Character count as text output
84
- output = f'There are {len(data[0].page_content)} characters in your document'
85
 
86
  return output, chatbot_engine
87
 
 
81
  top_k_docs_for_context=3)
82
 
83
  # Character count as text output
84
+ output = f'There are {len(data[0].page_content)} characters in your document, which is approximately {len(data[0].page_content) // 4} tokens.'
85
 
86
  return output, chatbot_engine
87