import requestsimport timeurl = f"https://vedaya-backend.fly.dev/api/data-ingestion/status/{file_id}"headers = { 'Authorization': 'Bearer YOUR_API_KEY'}# Poll status until processing completeswhile True: response = requests.get(url, headers=headers) status = response.json()['status'] print(f"Processing status: {status}") if status in ['completed', 'failed']: break time.sleep(5) # Wait 5 seconds before checking again