Skip to content

Commit

Permalink
DH-5688/reformat with black
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadrezaPourreza committed Apr 4, 2024
1 parent c97f66f commit b280204
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions dataherald/sql_generator/dataherald_finetuning_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,7 @@ def _run(
most_similar_tables = self.similart_tables_based_on_few_shot_examples(df)
table_relevance = ""
for _, row in df.iterrows():
table_relevance += (
f'Table: `{row["table_name"]}`, relevance score: {row["similarities"]}\n'
)
table_relevance += f'Table: `{row["table_name"]}`, relevance score: {row["similarities"]}\n'
if len(most_similar_tables) > 0:
for table in most_similar_tables:
table_relevance += (
Expand Down
4 changes: 1 addition & 3 deletions dataherald/sql_generator/dataherald_sqlagent.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,7 @@ def _run(
most_similar_tables = self.similart_tables_based_on_few_shot_examples(df)
table_relevance = ""
for _, row in df.iterrows():
table_relevance += (
f'Table: `{row["table_name"]}`, relevance score: {row["similarities"]}\n'
)
table_relevance += f'Table: `{row["table_name"]}`, relevance score: {row["similarities"]}\n'
if len(most_similar_tables) > 0:
for table in most_similar_tables:
table_relevance += (
Expand Down

0 comments on commit b280204

Please sign in to comment.