Skip to content

Commit

Permalink
add the url variable in the get_text_summary function to pass it to t…
Browse files Browse the repository at this point in the history
…he memory

By sending the url along when calling browse.summarize_text, we can then add it along the chunk in memory.
  • Loading branch information
maiko committed Apr 12, 2023
1 parent b20c011 commit 5bb551d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 5bb551d

Please sign in to comment.