Update app.py
Browse files
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 |
-
|
| 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.
|
| 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 |
|