From c69fb6536b8449a99214e794f643eaa5ccfdbe6f Mon Sep 17 00:00:00 2001 From: Akshay Vinod <67356841+hakunama1ata@users.noreply.github.com> Date: Tue, 3 Sep 2024 20:14:40 +0200 Subject: [PATCH] Added Encoding for Unicode --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 9685677..a17681e 100644 --- a/main.py +++ b/main.py @@ -162,7 +162,7 @@ def create_and_run_bot(email: str, password: str, parameters: dict, openai_api_k try: style_manager = StyleManager() resume_generator = ResumeGenerator() - with open(parameters['uploads']['plainTextResume'], "r") as file: + with open(parameters['uploads']['plainTextResume'], "r", encoding='utf-8') as file: plain_text_resume = file.read() resume_object = Resume(plain_text_resume) resume_generator_manager = FacadeManager(openai_api_key, style_manager, resume_generator, resume_object, Path("data_folder/output"))