fix: remove debug print #none
This commit is contained in:
parent
7e34e4343b
commit
f3a2a293f2
|
@ -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"] :]
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user