added eu1 & eu2 fucntions in app.py