fix: remove debug print #none

This commit is contained in:
Tadashi 2024-11-25 16:07:56 +07:00
parent 7e34e4343b
commit f3a2a293f2
No known key found for this signature in database
GPG Key ID: 399380A00CC9028D
3 changed files with 0 additions and 5 deletions

View File

@ -348,7 +348,6 @@ class AnswerWithContextPipeline(BaseComponent):
to_highlight, to_highlight,
elem_id=str(span_idx + 1) if span_idx is not None else None, elem_id=str(span_idx + 1) if span_idx is not None else None,
) )
print(text)
if idx < len(ss) - 1: if idx < len(ss) - 1:
text += cur_doc.text[span["end"] : ss[idx + 1]["start"]] text += cur_doc.text[span["end"] : ss[idx + 1]["start"]]
text += cur_doc.text[ss[-1]["end"] :] text += cur_doc.text[ss[-1]["end"] :]

View File

@ -106,7 +106,6 @@ class AnswerWithInlineCitation(AnswerWithContextPipeline):
matched_citations.add(citation) matched_citations.add(citation)
for citation in matched_citations: for citation in matched_citations:
print("Found citation:", citation)
answer = answer.replace( answer = answer.replace(
citation, citation,
( (
@ -115,7 +114,6 @@ class AnswerWithInlineCitation(AnswerWithContextPipeline):
), ),
) )
print("Replaced answer:", answer)
return answer return answer
def stream( # type: ignore def stream( # type: ignore

View File

@ -90,8 +90,6 @@ class Render:
highlight_text = ( highlight_text = (
text.replace("\n", "").replace('"', "").replace("'", "") text.replace("\n", "").replace('"', "").replace("'", "")
) )
# print("highlight_text", highlight_text, phrase, lang)
except Exception as e: except Exception as e:
print(e) print(e)
highlight_text = text highlight_text = text