From 773d27d5eb66ca1e8a103372cd18fdb3fdfb5b20 Mon Sep 17 00:00:00 2001 From: Kye Date: Sat, 14 Oct 2023 20:26:51 -0400 Subject: [PATCH] clean up --- README.md | 7 +++++++ {dalle => dalle3}/__init__.py | 0 dalle/main.py => main.py | 7 ++++++- pyproject.toml | 6 +++--- requirements.txt | 5 +++-- 5 files changed, 19 insertions(+), 6 deletions(-) rename {dalle => dalle3}/__init__.py (100%) rename dalle/main.py => main.py (96%) diff --git a/README.md b/README.md index 6753264..9272dcb 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,13 @@ A easy, reliable, fluid template for python packages complete with docs, testing `pip install dalle3` +# Usage +``` + + +``` + + # License MIT diff --git a/dalle/__init__.py b/dalle3/__init__.py similarity index 100% rename from dalle/__init__.py rename to dalle3/__init__.py diff --git a/dalle/main.py b/main.py similarity index 96% rename from dalle/main.py rename to main.py index 96a4b86..96186cc 100644 --- a/dalle/main.py +++ b/main.py @@ -10,13 +10,18 @@ from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.support.ui import WebDriverWait from undetected_chromedriver import Chrome, ChromeOptions +from webdriver_manager.chrome import ChromeDriverManager +from selenium import webdriver + + def get_cookie_value(): options = ChromeOptions() options.add_argument("--disable-blink-features=AutomationControlled") options.add_argument("--headless") - driver = Chrome(options=options) + driver = webdriver.Chrome(ChromeDriverManager().install()) + # Go to Bing Image Creator and log in manually here. # Once logged in, the script will proceed to get the cookie. diff --git a/pyproject.toml b/pyproject.toml index 13fd888..d2790ec 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,10 +8,10 @@ version = "0.0.1" description = "dalle3 - Pytorch" license = "MIT" authors = ["Kye Gomez "] -homepage = "https://github.com/kyegomez/paper" +homepage = "https://github.com/Agora-X/DALLE3-API" documentation = "" # Add this if you have documentation. readme = "README.md" # Assuming you have a README.md -repository = "https://github.com/kyegomez/paper" +repository = "https://github.com/Agora-X/DALLE3-API" keywords = ["artificial intelligence", "deep learning", "optimizers", "Prompt Engineering"] classifiers = [ "Development Status :: 4 - Beta", @@ -23,7 +23,7 @@ classifiers = [ [tool.poetry.dependencies] python = "^3.6" -undetected-chromdriver = "*" +undetected-chromedriver = "*" selenium = "*" requests = "*" diff --git a/requirements.txt b/requirements.txt index eeb2904..95d2d16 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ -undetected-chromdriver +undetected-chromedriver selenium -requests \ No newline at end of file +requests +webdriver-manager \ No newline at end of file