use asynctask for getting predictions