Spaces:
Running
Running
Commit
·
4822e7e
1
Parent(s):
9ed6519
update to avoid automatic processing
Browse files- utils/processing.py +2 -2
utils/processing.py
CHANGED
@@ -70,10 +70,10 @@ async def process_single_upload(upload_path, processed_path):
|
|
70 |
|
71 |
if check_result['is_valid']:
|
72 |
# Process the file
|
73 |
-
await process_upload(upload_path, processed_path)
|
74 |
|
75 |
# Move the file to processed directory
|
76 |
-
|
77 |
|
78 |
# Send email notification
|
79 |
# await send_email_notification(upload_path.name, check_result, "Processing successful")
|
|
|
70 |
|
71 |
if check_result['is_valid']:
|
72 |
# Process the file
|
73 |
+
# await process_upload(upload_path, processed_path)
|
74 |
|
75 |
# Move the file to processed directory
|
76 |
+
await asyncio.to_thread(shutil.move, upload_path, processed_path)
|
77 |
|
78 |
# Send email notification
|
79 |
# await send_email_notification(upload_path.name, check_result, "Processing successful")
|