I can't use blynk and micropython together?

First i’m using ESP32 with Micropython
I have a 7-segments task which control the 7-seg with 3 buttons (Increment& Decrement and Reset)
and i have done this using the phsical buttons and it’s worked
i want to control these 3 buttons with Blynk app
but the problem is that when i run the blynk the task code doesn’t work i only can change the pins value but the While loop code that i made to control the 7-segments doesn’t work

how can i fix this please?

import time
import BlynkLibESP32 as BlynkLib   # for ESP32

blynk = BlynkLib.Blynk("KL9qFCCJhoJlh2gf43FX4D-03YC-UnTA")

i=0
a.value(list[0][0])
b.value(list[0][1])
c.value(list[0][2])
d.value(list[0][3])
e.value(list[0][4])
f.value(list[0][5])
g.value(list[0][6])
while True:
     blynk.run()      # initialize Blynk

    if INC_button.value() == 1 and i != 9 :
        i = i+1
    a.value(list[i][0])
    b.value(list[i][1])
    c.value(list[i][2])
    d.value(list[i][3])
    e.value(list[i][4])
    f.value(list[i][5])
    g.value(list[i][6])
    time.sleep(0.5)
    if INC_button.value() == 1 and i == 9 :
        i = 9
    a.value(list[i][0])
    b.value(list[i][1])
    c.value(list[i][2])
    d.value(list[i][3])
    e.value(list[i][4])
    f.value(list[i][5])
    g.value(list[i][6])
    time.sleep(0.5)

    if DEC_button.value() == 1 and i != 0 :
        i = i-1
        a.value(list[i][0])
        b.value(list[i][1])
        c.value(list[i][2])
        d.value(list[i][3])
        e.value(list[i][4])
        f.value(list[i][5])
        g.value(list[i][6])
        time.sleep(0.5)
    if DEC_button.value() == 1 and i == 0 :
        i = 0
        a.value(list[i][0])
        b.value(list[i][1])
        c.value(list[i][2])
        d.value(list[i][3])
        e.value(list[i][4])
        f.value(list[i][5])
        g.value(list[i][6])
        time.sleep(0.5)
    if RESET_button.value() == 1 :
        i = 0
        a.value(list[0][0])
        b.value(list[0][1])
        c.value(list[0][2])
        d.value(list[0][3])
        e.value(list[0][4])
        f.value(list[0][5])
        g.value(list[0][6])
        time.sleep(0.5)```

Hi Sarah

the library has a “sync” function, you can use this to synchronise the cloud / app “buttons” with your application.

blynk.sync_virtual(1,2,3)