import time | |
def process_file(file): | |
if file is not None: | |
status = "Processing" | |
# Simulate some processing (replace with actual processing logic) | |
time.sleep(2) # Simulate processing time | |
status = "Finished" | |
return status, file | |
return "No file uploaded.", None | |