summaryrefslogtreecommitdiffstats
path: root/g4f
diff options
context:
space:
mode:
authorH Lohaus <hlohaus@users.noreply.github.com>2023-11-16 18:29:07 +0100
committerGitHub <noreply@github.com>2023-11-16 18:29:07 +0100
commit293337db98240966d815da03402ff7a8c6266a2a (patch)
tree89fecf40173f3e872407caa29e01fef3d9d087de /g4f
parentFix Bard Provider (diff)
downloadgpt4free-293337db98240966d815da03402ff7a8c6266a2a.tar
gpt4free-293337db98240966d815da03402ff7a8c6266a2a.tar.gz
gpt4free-293337db98240966d815da03402ff7a8c6266a2a.tar.bz2
gpt4free-293337db98240966d815da03402ff7a8c6266a2a.tar.lz
gpt4free-293337db98240966d815da03402ff7a8c6266a2a.tar.xz
gpt4free-293337db98240966d815da03402ff7a8c6266a2a.tar.zst
gpt4free-293337db98240966d815da03402ff7a8c6266a2a.zip
Diffstat (limited to 'g4f')
-rw-r--r--g4f/Provider/helper.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/g4f/Provider/helper.py b/g4f/Provider/helper.py
index cd9a971c..cbbbd75e 100644
--- a/g4f/Provider/helper.py
+++ b/g4f/Provider/helper.py
@@ -17,12 +17,17 @@ from browser_cookie3 import (
firefox,
BrowserCookieError
)
+try:
+ from selenium.webdriver.remote.webdriver import WebDriver
+ except ImportError:
+ class WebDriver():
+ pass
try:
from undetected_chromedriver import Chrome, ChromeOptions
except ImportError:
class Chrome():
def __init__():
- raise RuntimeError('Please install "undetected_chromedriver" and "pyvirtualdisplay" package')
+ raise RuntimeError('Please install the "undetected_chromedriver" package')
class ChromeOptions():
def add_argument():
pass