Skip to content

Commit

Permalink
2.8.070
Browse files Browse the repository at this point in the history
  • Loading branch information
chapmanjacobd committed Jul 12, 2024
1 parent 924e734 commit 57d559b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ To stop playing press Ctrl+C in either the terminal or mpv
<details><summary>List all subcommands</summary>

$ library
library (v2.8.069; 80 subcommands)
library (v2.8.070; 80 subcommands)

Create database subcommands:
╭───────────────┬──────────────────────────────────────────╮
Expand Down
2 changes: 1 addition & 1 deletion xklb/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "2.8.069"
__version__ = "2.8.070"
3 changes: 2 additions & 1 deletion xklb/files/llm_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ def llm_map():
if file_contents:
file_contents = file_contents.get("tags")
if file_contents:
prompt += "\n" + f"File contents: {file_contents[:args.text].replace(';', '\n')}" + "\n"
extract = file_contents[: args.text].replace(";", "\n")
prompt += "\n" + "File contents: " + extract + "\n"

output = run_llama_with_prompt(args, prompt)
if output is not None:
Expand Down
2 changes: 1 addition & 1 deletion xklb/text/extract_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def parse_text(args, html_content):

def get_text(args, url):
is_error = False
if not url.startswith("http") and Path(url).is_file():
if not args.local_html and not url.startswith("http") and Path(url).is_file():
text = fs_add.munge_book_tags_fast(url)
if text:
yield text.get("tags").replace(";", "\n")
Expand Down

0 comments on commit 57d559b

Please sign in to comment.