Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -60,7 +60,7 @@ def find_exact_matches(df1, df2, column_name):
|
|
| 60 |
return matches
|
| 61 |
|
| 62 |
|
| 63 |
-
def find_similar_texts(df1, df2, column_name, exact_matches, threshold=0.
|
| 64 |
# Find rows with similar texts in the specified column, excluding exact matches
|
| 65 |
similar_texts = []
|
| 66 |
exact_match_indices = set(exact_matches.index.tolist())
|
|
@@ -100,8 +100,9 @@ def main():
|
|
| 100 |
industry_df = read_csv_or_excel(industry_file)
|
| 101 |
|
| 102 |
# Get column names
|
| 103 |
-
warehouse_columns = warehouse_df.columns.tolist()
|
| 104 |
-
industry_columns = industry_df.columns.tolist()
|
|
|
|
| 105 |
|
| 106 |
# Select columns using dropdowns
|
| 107 |
st.header("Select Columns")
|
|
|
|
| 60 |
return matches
|
| 61 |
|
| 62 |
|
| 63 |
+
def find_similar_texts(df1, df2, column_name, exact_matches, threshold=0.5):
|
| 64 |
# Find rows with similar texts in the specified column, excluding exact matches
|
| 65 |
similar_texts = []
|
| 66 |
exact_match_indices = set(exact_matches.index.tolist())
|
|
|
|
| 100 |
industry_df = read_csv_or_excel(industry_file)
|
| 101 |
|
| 102 |
# Get column names
|
| 103 |
+
warehouse_columns = [""] + warehouse_df.columns.tolist() # Add blank option at the beginning
|
| 104 |
+
industry_columns = [""] + industry_df.columns.tolist() # Add blank option at the beginning
|
| 105 |
+
|
| 106 |
|
| 107 |
# Select columns using dropdowns
|
| 108 |
st.header("Select Columns")
|