WEB API independent

This commit is contained in:
tuyang.yhj 2023-07-04 17:25:21 +08:00
parent 314920b6e1
commit f02fe50aea

View File

@ -44,7 +44,7 @@ class DbChatOutputParser(BaseOutputParser):
else:
html_table = df.to_html(index=False, escape=False, sparsify=False)
table_str = "".join(html_table.split())
html = f"""<div class="w-full overflow-auto">{table_str}</table></div>"""
html = f"""<div class="w-full overflow-auto">{table_str}</div>"""
view_text = f"##### {str(speak)}" + "\n" + html.replace("\n", " ")
return view_text