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