Spaces:
Sleeping
Sleeping
arabellastrange
commited on
Commit
·
bf0597d
1
Parent(s):
0e9148c
debug with webdriver
Browse files- app.py +2 -0
- web_search.py +1 -1
app.py
CHANGED
@@ -98,6 +98,8 @@ if __name__ == '__main__':
|
|
98 |
logger.addHandler(filehandler) # set the new handler
|
99 |
logger.setLevel(logging.INFO)
|
100 |
|
|
|
|
|
101 |
api_key = os.getenv('gpt_api_key')
|
102 |
|
103 |
# GPT - 4 Turbo. The latest GPT - 4 model intended to reduce cases of “laziness” where the model doesn’t complete
|
|
|
98 |
logger.addHandler(filehandler) # set the new handler
|
99 |
logger.setLevel(logging.INFO)
|
100 |
|
101 |
+
logging.getLogger('selenium.webdriver.common').setLevel(logging.DEBUG)
|
102 |
+
|
103 |
api_key = os.getenv('gpt_api_key')
|
104 |
|
105 |
# GPT - 4 Turbo. The latest GPT - 4 model intended to reduce cases of “laziness” where the model doesn’t complete
|
web_search.py
CHANGED
@@ -78,7 +78,7 @@ def process_url(url, timeout):
|
|
78 |
options.add_argument("--disable-dev-shm-usage")
|
79 |
result = ""
|
80 |
|
81 |
-
driver = webdriver.Chrome(
|
82 |
logger.info(f"*****setting page load timeout {timeout}")
|
83 |
driver.set_page_load_timeout(timeout)
|
84 |
|
|
|
78 |
options.add_argument("--disable-dev-shm-usage")
|
79 |
result = ""
|
80 |
|
81 |
+
driver = webdriver.Chrome(options=options)
|
82 |
logger.info(f"*****setting page load timeout {timeout}")
|
83 |
driver.set_page_load_timeout(timeout)
|
84 |
|