Update main.py

up/down flip per request