# ... (your existing app.py code stays as is, but change the LAST LINE to:) demo.launch(inbrowser=True)