add the url variable in the get_text_summary function to pass it to the memory

By sending the url along when calling browse.summarize_text, we can then add it along the chunk in memory.
pull/968/head
Maiko Bossuyt 2023-04-12 16:42:14 +02:00
parent b20c0117c5
commit 5bb551db95
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ def browse_website(url, question):
def get_text_summary(url, question):
"""Return the results of a google search"""
text = browse.scrape_text(url)
summary = browse.summarize_text(text, question)
summary = browse.summarize_text(url, text, question)
return """ "Result" : """ + summary