File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,7 +35,9 @@ def get_file_type(file):
3535 return mime_type .split ("/" )[1 ]
3636
3737 def get_contents (self ):
38- return self .file .read ()
38+ with self .file as f :
39+ f .seek (0 , 0 )
40+ return f .read ()
3941
4042 def PdfFileRead (self ):
4143 """This current code provides a workaround in case MuPDF (a dependency for
Original file line number Diff line number Diff line change 44#
55# pip-compile dev_requirements.in
66#
7- anyio==3.3.2
7+ anyio==3.3.3
88 # via jupyter-server
99argon2-cffi==21.1.0
1010 # via
@@ -28,7 +28,7 @@ cffi==1.14.6
2828 # via argon2-cffi
2929charset-normalizer==2.0.6
3030 # via requests
31- click==8.0.2
31+ click==8.0.3
3232 # via black
3333colorama==0.4.4
3434 # via
@@ -81,7 +81,7 @@ jinja2==3.0.2
8181 # notebook
8282json5==0.9.6
8383 # via jupyterlab-server
84- jsonschema==4.0.1
84+ jsonschema==4.1.0
8585 # via
8686 # jupyterlab-server
8787 # nbformat
Original file line number Diff line number Diff line change 55
66setuptools .setup (
77 name = "TextSpitter" ,
8- version = "0.3.5a4 " ,
8+ version = "0.3.5a5 " ,
99 author = "Francis Secada" ,
1010 author_email = "francis.secada@gmail.com" ,
1111 description = "Python package that spits out text from your document files!" ,
You can’t perform that action at this time.
0 commit comments