Skip to content

Commit

Permalink
fix(llm): fix access to key 'text'
Browse files Browse the repository at this point in the history
  • Loading branch information
nsantacruz committed Feb 11, 2024
1 parent 0710c17 commit 4189fec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sefaria/helper/llm/topic_prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def _get_commentary_for_tref(tref: str) -> List[dict]:
lambda lang: JaggedTextArray(link_dict['text' if lang == 'en' else 'he']).flatten_to_string()),
}
temp_commentary['text'] = _lang_dict_by_func(
lambda lang: re.sub(r"<[^>]+>", " ", TextChunk.strip_itags(temp_commentary.text[lang])))
lambda lang: re.sub(r"<[^>]+>", " ", TextChunk.strip_itags(temp_commentary['text'][lang])))
commentary += [temp_commentary]
return commentary

Expand Down

0 comments on commit 4189fec

Please sign in to comment.