Spaces:
Build error
Build error
Pietro Lesci
commited on
Commit
·
b482a79
1
Parent(s):
57b9989
enhance reset index in UI
Browse files- src/components.py +1 -4
src/components.py
CHANGED
|
@@ -125,9 +125,6 @@ def form(df):
|
|
| 125 |
with st.spinner("Step 4/4: Preparing outputs"):
|
| 126 |
new_df = output_transform(pos, neg)
|
| 127 |
|
| 128 |
-
# reset the index for the UI
|
| 129 |
-
new_df = new_df.reset_index(drop=True)
|
| 130 |
-
|
| 131 |
end_time = time.time()
|
| 132 |
meta_data = {
|
| 133 |
"vocab_size": input_dict["X"].shape[1],
|
|
@@ -351,7 +348,7 @@ def analysis(outputs):
|
|
| 351 |
value=0.25,
|
| 352 |
help="To return everything, select 0.",
|
| 353 |
)
|
| 354 |
-
subset_df = df.loc[df["Score"] >= threshold]
|
| 355 |
st.write(subset_df)
|
| 356 |
|
| 357 |
with col2:
|
|
|
|
| 125 |
with st.spinner("Step 4/4: Preparing outputs"):
|
| 126 |
new_df = output_transform(pos, neg)
|
| 127 |
|
|
|
|
|
|
|
|
|
|
| 128 |
end_time = time.time()
|
| 129 |
meta_data = {
|
| 130 |
"vocab_size": input_dict["X"].shape[1],
|
|
|
|
| 348 |
value=0.25,
|
| 349 |
help="To return everything, select 0.",
|
| 350 |
)
|
| 351 |
+
subset_df = df.loc[df["Score"] >= threshold].reset_index(drop=True)
|
| 352 |
st.write(subset_df)
|
| 353 |
|
| 354 |
with col2:
|