Spaces:
Runtime error
Runtime error
minh
commited on
Commit
·
eeae8fb
1
Parent(s):
c5775b4
change upload output
Browse files
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 |
|