From edc468f4aa4e173d181711fe84eb092f9233ca0d Mon Sep 17 00:00:00 2001 From: AjaySi Date: Fri, 24 Nov 2023 15:36:20 +0530 Subject: [PATCH] Blogen-V0.1 Added features. WIP --- lib/gpt_vision_image_details.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lib/gpt_vision_image_details.py b/lib/gpt_vision_image_details.py index 4b471163..890b7f30 100644 --- a/lib/gpt_vision_image_details.py +++ b/lib/gpt_vision_image_details.py @@ -77,15 +77,3 @@ def analyze_and_extract_details_from_image(image_path, api_key): sys.exit(f"Error: Failed to communicate with OpenAI API. Error: {e}") except Exception as e: sys.exit(f"Error occurred: {e}") - - -# Example usage -if __name__ == "__main__": - - api_key = "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" - image_path = "/home/ajsingh/pseo_experiments/pseo_website/assets/generated_image_2023-11-08-21-43-44.png" - try: - details = analyze_and_extract_details_from_image(image_path, api_key) - print(details) - except Exception as e: - sys.exit(f"Error occurred: {e}")