Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Support Adobe files #5

Open
Xain3 opened this issue Jun 4, 2024 · 0 comments
Open

Feature: Support Adobe files #5

Xain3 opened this issue Jun 4, 2024 · 0 comments

Comments

@Xain3
Copy link

Xain3 commented Jun 4, 2024

Description

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).

Error Traceback

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

Steps to Reproduce

  • Attempt to process a Photoshop (.psd) file using not_llama_fs.

  • Observe the error traceback indicating unsupported image format.

Expected Behavior

The application should successfully process Adobe file formats, starting with Photoshop (.psd) files, without raising an unsupported image format error.

Environment

OS: macOS (version 12.7.5)
Python Version: 3.12
not_llama_fs Version: 0.1.0

Proposed Solution

Implement support for Adobe file formats in not_llama_fs, including but not limited to:

  • Photoshop files (.psd)
  • Illustrator files (.ai)

Additional Context

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant