Commit
·
ef996f6
1
Parent(s):
4f5043c
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ def get_google_description(keyword):
|
|
17 |
return keyword
|
18 |
|
19 |
def get_description_from_url(url):
|
20 |
-
response = requests.get(url, timeout=
|
21 |
soup = BeautifulSoup(response.text, 'html.parser')
|
22 |
description_tag = soup.find('meta', {'name': 'description'})
|
23 |
|
@@ -106,4 +106,4 @@ gui = gr.Interface(title=title,
|
|
106 |
examples=transactions_and_tags)
|
107 |
|
108 |
#display the interface
|
109 |
-
gui.launch()
|
|
|
17 |
return keyword
|
18 |
|
19 |
def get_description_from_url(url):
|
20 |
+
response = requests.get(url, timeout=5)
|
21 |
soup = BeautifulSoup(response.text, 'html.parser')
|
22 |
description_tag = soup.find('meta', {'name': 'description'})
|
23 |
|
|
|
106 |
examples=transactions_and_tags)
|
107 |
|
108 |
#display the interface
|
109 |
+
gui.launch(debug=True)
|