Spaces:
Sleeping
Sleeping
Commit
·
b3c96bc
1
Parent(s):
ac7c699
1.21 print debug
Browse files
app.py
CHANGED
@@ -322,7 +322,7 @@ def create_download_link(df: pd.DataFrame, filename: str) -> str:
|
|
322 |
|
323 |
|
324 |
def main():
|
325 |
-
st.title("кластеризуем новости v.1.
|
326 |
st.write("Upload Excel file with columns: company, datetime, text")
|
327 |
|
328 |
uploaded_file = st.file_uploader("Choose Excel file", type=['xlsx'])
|
@@ -392,7 +392,9 @@ def main():
|
|
392 |
st.write(f"Cluster rows indices: {cluster_rows.index.tolist()}")
|
393 |
|
394 |
# Get their original indices from dedup_df_full
|
395 |
-
original_indices =
|
|
|
|
|
396 |
st.write(f"Original indices: {original_indices.tolist()}")
|
397 |
|
398 |
# Find the row with longest text among these indices
|
|
|
322 |
|
323 |
|
324 |
def main():
|
325 |
+
st.title("кластеризуем новости v.1.21 print debug")
|
326 |
st.write("Upload Excel file with columns: company, datetime, text")
|
327 |
|
328 |
uploaded_file = st.file_uploader("Choose Excel file", type=['xlsx'])
|
|
|
392 |
st.write(f"Cluster rows indices: {cluster_rows.index.tolist()}")
|
393 |
|
394 |
# Get their original indices from dedup_df_full
|
395 |
+
original_indices = dedup_df.index[cluster_rows.index]
|
396 |
+
|
397 |
+
#original_indices = dedup_df_full.index[cluster_rows.index - 1] -it was wrong!
|
398 |
st.write(f"Original indices: {original_indices.tolist()}")
|
399 |
|
400 |
# Find the row with longest text among these indices
|