Renames get_text_summary method to get_text_summary (missed this)

pull/10/head
Torantulino 2023-03-30 10:07:18 +01:00
parent fb5b86bd01
commit 0c9bbbd20c
1 changed files with 2 additions and 2 deletions

View File

@ -68,14 +68,14 @@ def google_search(query, num_results = 8):
return json.dumps(search_results, ensure_ascii=False, indent=4)
def transcribe_summarise(url):
def get_text_summary(url):
text = browse.scrape_text(url)
summary = browse.summarize_text(text)
return """ "Result" : """ + summary
def check_news(source):
print("Checking news from BBC world instead of " + source)
_text= transcribe_summarise("https://www.bbc.com/news/world")
_text= get_text_summary("https://www.bbc.com/news/world")
return _text
def commit_memory(string):