Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -391,6 +391,7 @@ else:
|
|
| 391 |
if currFile is None and len(st.session_state.results) > 0 and len(st.session_state.results[0]) > 0:
|
| 392 |
st.write("Select a file to view from the sidebar")
|
| 393 |
|
|
|
|
| 394 |
st.session_state.resetResult = False
|
| 395 |
currFileIndex = file_names.index(currFile)
|
| 396 |
|
|
@@ -545,13 +546,9 @@ if len(st.session_state.results) > 0:
|
|
| 545 |
results = []
|
| 546 |
indices = []
|
| 547 |
for i, resultTuple in enumerate(st.session_state.results):
|
| 548 |
-
if len(resultTuple) ==
|
| 549 |
-
|
| 550 |
-
results.append(resultTuple[1])
|
| 551 |
indices.append(i)
|
| 552 |
-
st.info(f'filenames : {fileNames}')
|
| 553 |
-
st.info(f'indices : {indices}')
|
| 554 |
-
st.info(f'results : {results}')
|
| 555 |
if len(indices) > 1:
|
| 556 |
|
| 557 |
df6_dict = {
|
|
|
|
| 391 |
if currFile is None and len(st.session_state.results) > 0 and len(st.session_state.results[0]) > 0:
|
| 392 |
st.write("Select a file to view from the sidebar")
|
| 393 |
|
| 394 |
+
try:
|
| 395 |
st.session_state.resetResult = False
|
| 396 |
currFileIndex = file_names.index(currFile)
|
| 397 |
|
|
|
|
| 546 |
results = []
|
| 547 |
indices = []
|
| 548 |
for i, resultTuple in enumerate(st.session_state.results):
|
| 549 |
+
if len(resultTuple) == 3:
|
| 550 |
+
results.append(resultTuple)
|
|
|
|
| 551 |
indices.append(i)
|
|
|
|
|
|
|
|
|
|
| 552 |
if len(indices) > 1:
|
| 553 |
|
| 554 |
df6_dict = {
|