Spaces:
Running
Running
Update pipeline.py
Browse files- pipeline.py +2 -11
pipeline.py
CHANGED
@@ -221,21 +221,12 @@ 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 |
-
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)
|
234 |
-
|
235 |
if os.path.exists(file_all_path):
|
236 |
-
|
237 |
os.remove(file_all_path)
|
238 |
-
print("chunk exist: ", chunk_exists)
|
239 |
# Try to download if already exists on Drive
|
240 |
chunk_exists = download_file_from_drive(chunk_filename, sample_folder_id, file_chunk_path)
|
241 |
all_exists = download_file_from_drive(all_filename, sample_folder_id, file_all_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 |
if os.path.exists(file_chunk_path):
|
|
|
225 |
os.remove(file_chunk_path)
|
226 |
+
|
227 |
if os.path.exists(file_all_path):
|
228 |
+
|
229 |
os.remove(file_all_path)
|
|
|
230 |
# Try to download if already exists on Drive
|
231 |
chunk_exists = download_file_from_drive(chunk_filename, sample_folder_id, file_chunk_path)
|
232 |
all_exists = download_file_from_drive(all_filename, sample_folder_id, file_all_path)
|