mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-09-12 08:29:30 -04:00
Update helper.py
This commit is contained in:
parent
510f534c0a
commit
293337db98
@ -17,12 +17,17 @@ from browser_cookie3 import (
|
|||||||
firefox,
|
firefox,
|
||||||
BrowserCookieError
|
BrowserCookieError
|
||||||
)
|
)
|
||||||
|
try:
|
||||||
|
from selenium.webdriver.remote.webdriver import WebDriver
|
||||||
|
except ImportError:
|
||||||
|
class WebDriver():
|
||||||
|
pass
|
||||||
try:
|
try:
|
||||||
from undetected_chromedriver import Chrome, ChromeOptions
|
from undetected_chromedriver import Chrome, ChromeOptions
|
||||||
except ImportError:
|
except ImportError:
|
||||||
class Chrome():
|
class Chrome():
|
||||||
def __init__():
|
def __init__():
|
||||||
raise RuntimeError('Please install "undetected_chromedriver" and "pyvirtualdisplay" package')
|
raise RuntimeError('Please install the "undetected_chromedriver" package')
|
||||||
class ChromeOptions():
|
class ChromeOptions():
|
||||||
def add_argument():
|
def add_argument():
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user