Skip to content

Commit

Permalink
Merge pull request #5 from bklynate/improvement/update-query-string
Browse files Browse the repository at this point in the history
Python's replace() method for query string massaging
  • Loading branch information
simbake committed Aug 21, 2023
2 parents a221d73 + db97e3c commit e3f74c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def input_modifier(user_input, state):
shared.processing_message = "*Searching online...*"
try:
# print(f'{state["context_instruct"]}')
query = user_input.strip("search").strip()
query = user_input.replace("search", "").strip()
search_results = search(query, num_results=1)
search_data = [(get_text(result), result) for result in search_results]
# state[
Expand Down

0 comments on commit e3f74c9

Please sign in to comment.