Spaces:
Running
Running
Update pipeline.py
Browse files- pipeline.py +5 -5
pipeline.py
CHANGED
@@ -208,17 +208,17 @@ def pipeline_with_gemini(accessions):
|
|
208 |
# Define local temp paths for reading/writing
|
209 |
import tempfile
|
210 |
tmp_dir = tempfile.mkdtemp()
|
211 |
-
|
212 |
-
|
213 |
-
file_chunk_path = os.path.join(tempfile.gettempdir(), chunk_filename)
|
214 |
-
file_all_path = os.path.join(tempfile.gettempdir(), all_filename)
|
215 |
|
216 |
# 🔥 Remove the local file first if it exists
|
217 |
if os.path.exists(file_chunk_path):
|
218 |
os.remove(file_chunk_path)
|
219 |
if os.path.exists(file_all_path):
|
220 |
os.remove(file_all_path)
|
221 |
-
|
222 |
# Try to download if already exists on Drive
|
223 |
chunk_exists = download_file_from_drive(chunk_filename, sample_folder_id, file_chunk_path)
|
224 |
all_exists = download_file_from_drive(all_filename, sample_folder_id, file_all_path)
|
|
|
208 |
# Define local temp paths for reading/writing
|
209 |
import tempfile
|
210 |
tmp_dir = tempfile.mkdtemp()
|
211 |
+
file_chunk_path = os.path.join(tmp_dir, chunk_filename)
|
212 |
+
file_all_path = os.path.join(tmp_dir, all_filename)
|
213 |
+
# file_chunk_path = os.path.join(tempfile.gettempdir(), chunk_filename)
|
214 |
+
# file_all_path = os.path.join(tempfile.gettempdir(), all_filename)
|
215 |
|
216 |
# 🔥 Remove the local file first if it exists
|
217 |
if os.path.exists(file_chunk_path):
|
218 |
os.remove(file_chunk_path)
|
219 |
if os.path.exists(file_all_path):
|
220 |
os.remove(file_all_path)
|
221 |
+
print("chunk exist: ", chunk_exists)
|
222 |
# Try to download if already exists on Drive
|
223 |
chunk_exists = download_file_from_drive(chunk_filename, sample_folder_id, file_chunk_path)
|
224 |
all_exists = download_file_from_drive(all_filename, sample_folder_id, file_all_path)
|