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

'ascii' codec can't encode character '\u201c' in position 7: ordinal not in range(128) #138

Open
GildeshAbhay opened this issue Apr 9, 2024 · 0 comments

Comments

@GildeshAbhay
Copy link

getting this error on MAC system (Apple) based on the code below: -

    def _llama_parser(self, file_path):
        """
        Function for extracting full text from a local PDF using Llama Parser
        """
        parser = LlamaParse(
            api_key=self.api_key,
            result_type="markdown",  # "markdown" and "text" are available
            verbose=True,
            language="en"
        )
        file_extractor = {".pdf": parser}
        documents = SimpleDirectoryReader(input_files=[file_path], file_extractor=file_extractor).load_data()
        return documents[0].text
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