Inframat-x commited on
Commit
eed2512
·
verified ·
1 Parent(s): cbb9525

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -0
app.py CHANGED
@@ -1205,3 +1205,17 @@ with gr.Blocks(css=CSS, theme=theme, fill_height=True) as demo:
1205
  # ------------- Launch -------------
1206
  if __name__ == "__main__":
1207
  demo.queue().launch()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1205
  # ------------- Launch -------------
1206
  if __name__ == "__main__":
1207
  demo.queue().launch()
1208
+ import os
1209
+ import pandas as pd
1210
+
1211
+ # Folder where your RAG files are stored
1212
+ folder = "papers" # change if needed
1213
+
1214
+ # List all files in the folder
1215
+ files = sorted(os.listdir(folder))
1216
+
1217
+ # Save them to a CSV file
1218
+ pd.DataFrame({"doc": files}).to_csv("paper_list.csv", index=False)
1219
+
1220
+ print("✅ Saved paper_list.csv with", len(files), "papers")
1221
+