VyLala commited on
Commit
3b4afe3
·
verified ·
1 Parent(s): 1d9a663

Update pipeline.py

Browse files
Files changed (1) hide show
  1. pipeline.py +7 -0
pipeline.py CHANGED
@@ -221,6 +221,13 @@ def pipeline_with_gemini(accessions):
221
  # file_all_path = os.path.join(tempfile.gettempdir(), all_filename)
222
  print(file_chunk_path)
223
  # 🔥 Remove the local file first if it exists
 
 
 
 
 
 
 
224
  if os.path.exists(file_chunk_path):
225
  print("here 1")
226
  os.remove(file_chunk_path)
 
221
  # file_all_path = os.path.join(tempfile.gettempdir(), all_filename)
222
  print(file_chunk_path)
223
  # 🔥 Remove the local file first if it exists
224
+ try:
225
+ os.remove(file_chunk_path)
226
+ print("✅ Removed chunk file")
227
+ except FileNotFoundError:
228
+ print("ℹ️ Chunk file not found — nothing to remove")
229
+ except Exception as e:
230
+ print(f"❌ Error removing chunk file: {e}")
231
  if os.path.exists(file_chunk_path):
232
  print("here 1")
233
  os.remove(file_chunk_path)