mgokg commited on
Commit
10a9f56
·
verified ·
1 Parent(s): 2fd105c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -5,7 +5,7 @@ from selenium.webdriver.common.by import By
5
  from gradio_client import Client
6
  from selenium.webdriver.support.wait import WebDriverWait
7
  from selenium.webdriver.support import expected_conditions as EC
8
- #from selenium.webdriver.chrome.options import Options
9
 
10
 
11
  def selenium(prompt):
@@ -16,7 +16,7 @@ def selenium(prompt):
16
  url = 'https://www.google.com/search?q=zugverbindung+bad+kissingen+euerdorf'
17
  wd.get(url)
18
  wd.implicitly_wait(10)
19
- message = driver.find_element(By.CLASS_NAME, "exp0")
20
 
21
  return message.text
22
 
 
5
  from gradio_client import Client
6
  from selenium.webdriver.support.wait import WebDriverWait
7
  from selenium.webdriver.support import expected_conditions as EC
8
+ from selenium.webdriver.chrome.options import Options
9
 
10
 
11
  def selenium(prompt):
 
16
  url = 'https://www.google.com/search?q=zugverbindung+bad+kissingen+euerdorf'
17
  wd.get(url)
18
  wd.implicitly_wait(10)
19
+ message = driver.find_element(By.ID, "exp0")
20
 
21
  return message.text
22