rohitdiwane commited on
Commit
e54660d
·
verified ·
1 Parent(s): 1dea137

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -13
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=True
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:
 
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: