amaye15 commited on
Commit
ef98c8b
·
1 Parent(s): bbcea60
Files changed (1) hide show
  1. run_google_lens.py +2 -2
run_google_lens.py CHANGED
@@ -87,7 +87,7 @@ class GoogleLensPipeline:
87
  except Exception as e:
88
  logger.error(f"Failed to open page: {str(e)}")
89
 
90
- def accept_terms(self, timeout=10):
91
  try:
92
  wait = WebDriverWait(self.driver, timeout)
93
  accept_button = wait.until(
@@ -98,7 +98,7 @@ class GoogleLensPipeline:
98
  except Exception as e:
99
  logger.error(f"Failed to accept terms: {str(e)}")
100
 
101
- def upload_image(self, image_path, timeout=10, sleep=5):
102
  try:
103
  wait = WebDriverWait(self.driver, timeout)
104
  file_input = wait.until(
 
87
  except Exception as e:
88
  logger.error(f"Failed to open page: {str(e)}")
89
 
90
+ def accept_terms(self, timeout=30):
91
  try:
92
  wait = WebDriverWait(self.driver, timeout)
93
  accept_button = wait.until(
 
98
  except Exception as e:
99
  logger.error(f"Failed to accept terms: {str(e)}")
100
 
101
+ def upload_image(self, image_path, timeout=30, sleep=10):
102
  try:
103
  wait = WebDriverWait(self.driver, timeout)
104
  file_input = wait.until(