Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci

Signed-off-by: Manxin Xu <[email protected]>
  • Loading branch information
pre-commit-ci[bot] authored and xmx-521 committed Mar 26, 2024
1 parent a1249aa commit e10f9b3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion intel_extension_for_transformers/neural_chat/chatbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def build_chatbot(config: PipelineConfig=None):
# logging.error("build_chatbot: plugin init failed")
# return
adapter.register_plugin_instance(plugin_name, plugins[plugin_name]["instance"])

if get_latest_error():
return
else:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def get_relation(table_coords, caption_coords, table_page_number, caption_page_n
y_distance = 0
y_close = y_distance < threshold
return same_page and x_overlap and y_close, y_distance

raw_pdf_elements = partition_pdf(
filename=pdf_path,
infer_table_structure=True,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def load(self, input, **kwargs):
self.process = kwargs['process']
self.table_summary_model_name_or_path = kwargs['table_summary_model_name_or_path']
self.table_summary_mode = kwargs['table_summary_mode'] if 'table_summary_mode' in kwargs else 'none'

if isinstance(input, str):
if os.path.isfile(input):
data_collection = self.parse_document(input)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,4 +331,4 @@ def generate_sqlcoder_prompt(qurey, metadata_file):
{table_content}
---
### Generated Summary:
"""
"""

0 comments on commit e10f9b3

Please sign in to comment.