add rerank to app.py