Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -122,22 +122,22 @@ if user_titles and search_button:
|
|
122 |
"File_name": st.column_config.TextColumn("File Name")
|
123 |
},
|
124 |
use_container_width=True,
|
125 |
-
hide_index=
|
126 |
)
|
127 |
|
128 |
-
# Display all file names in a list format
|
129 |
-
st.subheader("All File Names:")
|
130 |
-
for idx, row in all_results.iterrows():
|
131 |
-
|
132 |
|
133 |
-
# Add option to copy all file names as text
|
134 |
-
all_filenames = '\n'.join(all_results['File_name'].tolist())
|
135 |
-
st.download_button(
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
)
|
141 |
else:
|
142 |
st.warning("No results found. Try different search options or check your spelling.")
|
143 |
else:
|
|
|
122 |
"File_name": st.column_config.TextColumn("File Name")
|
123 |
},
|
124 |
use_container_width=True,
|
125 |
+
hide_index=False
|
126 |
)
|
127 |
|
128 |
+
# # Display all file names in a list format
|
129 |
+
# st.subheader("All File Names:")
|
130 |
+
# for idx, row in all_results.iterrows():
|
131 |
+
# st.code(row['File_name'], language=None)
|
132 |
|
133 |
+
# # Add option to copy all file names as text
|
134 |
+
# all_filenames = '\n'.join(all_results['File_name'].tolist())
|
135 |
+
# st.download_button(
|
136 |
+
# label="📋 Copy all file names",
|
137 |
+
# data=all_filenames,
|
138 |
+
# file_name=f"filenames_{'_'.join(titles_list)}.txt",
|
139 |
+
# mime="text/plain"
|
140 |
+
# )
|
141 |
else:
|
142 |
st.warning("No results found. Try different search options or check your spelling.")
|
143 |
else:
|