drforse / not-llama-fs Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Hi there,
Great work on the initiative and improvements on this project. It's perfect for what I need it for. However, I'm encountering an error, which I think might be because I'm using macOS. Please get back to me with your thoughts on this issue.
Preparing ../../res/httpswwwbaincom/RETRIEVED/2022 Carbon Credit Disclosure.pdf
Detected mime type: application/pdf
Preparing ../../res/httpswwwbaincom/RETRIEVED/Bain Brief Why The 5g Pessimists Are Wrong.pdf
Detected mime type: application/pdf
Preparing ../../res/httpswwwbaincom/RETRIEVED/Modello 231 External Eng 2023.pdf
Detected mime type: application/pdf
Preparing ../../res/httpswwwbaincom/RETRIEVED/Bain Brief Finding The Sustainable Advantage In Chemicals.pdf
Detected mime type: application/pdf
Preparing ../../res/httpswwwbaincom/RETRIEVED/Relatorio De Igualdade.pdf
Detected mime type: application/pdf
Producing
[]
{}
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/Users/dutch22/Documents/GitHub/Spider/Spider PDF /out/not-llama-fs/app/__main__.py", line 46, in <module>
main()
File "/Users/dutch22/Documents/GitHub/Spider/Spider PDF /out/not-llama-fs/app/__main__.py", line 40, in main
demo(args.path, args.producer, args.text_model, args.image_model, args.apikey)
File "/Users/dutch22/Documents/GitHub/Spider/Spider PDF /out/not-llama-fs/app/__init__.py", line 54, in demo
tree = producer.produce()
^^^^^^^^^^^^^^^^^^
File "/Users/dutch22/Documents/GitHub/Spider/Spider PDF /out/not-llama-fs/not_llama_fs/producers/ollama_producer.py", line 119, in produce
for n, file in enumerate(llama_response_json["files"]):
~~~~~~~~~~~~~~~~~~~^^^^^^^^^
KeyError: 'files'
dutch22@Hossams-Laptop not-llama-fs %
I encountered an issue while attempting to process Adobe files (specifically PSD files) with not_llama_fs. The system currently does not support the image format and returns an error. To enhance the functionality and versatility of not_llama_fs, I request support for Adobe file formats, particularly Photoshop files (.psd).
Preparing /Users/xain/Downloads/Untitled-3.psd
Detected mime type: image/vnd.adobe.photoshop
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/Users/xain/not-llama-fs/app/__main__.py", line 22, in <module>
main()
File "/Users/xain/not-llama-fs/app/__main__.py", line 16, in main
demo(args.path, args.producer, args.apikey)
File "/Users/xain/not-llama-fs/app/__init__.py", line 44, in demo
producer.prepare_files("image")
File "/Users/xain/not-llama-fs/not_llama_fs/producers/llama_producer.py", line 87, in prepare_files
self.prepare_file(file)
File "/Users/xain/not-llama-fs/not_llama_fs/producers/llama_producer.py", line 65, in prepare_file
result = self.client.generate(
^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/ollama/_client.py", line 126, in generate
return self._request_stream(
^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/ollama/_client.py", line 97, in _request_stream
return self._stream(*args, **kwargs) if stream else self._request(*args, **kwargs).json()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/ollama/_client.py", line 73, in _request
raise ResponseError(e.response.text, e.response.status_code) from None
ollama._types.ResponseError: unsupported image format
Attempt to process a Photoshop (.psd) file using not_llama_fs.
Observe the error traceback indicating unsupported image format.
The application should successfully process Adobe file formats, starting with Photoshop (.psd) files, without raising an unsupported image format error.
OS: macOS (version 12.7.5)
Python Version: 3.12
not_llama_fs Version: 0.1.0
Implement support for Adobe file formats in not_llama_fs, including but not limited to:
Supporting Adobe file formats will cater to a broader user base, including graphic designers, illustrators, and other creative professionals who frequently work with these file types.
Thank you for considering this feature request. I look forward to seeing this enhancement in future releases.
https://stackoverflow.com/a/66732827
python-magic-bin 0.4.14 provides wheels for OSX, w32 and w64, but not for Linux. And there is no source code at PyPI.
You need to install it from github:
pip install git+https://github.com/julian-r/python-magic.git
Please add support for various text file readers as in llama-index.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.