That doesn’t do anything except let the taxi go out of service until someone cleans it - assuming that it would identify vomit without waiting for customers to complain after they sit in it.
this is a trivial problem, same way rental car companies solved it:
1. operator or computer vision detects dirt in salon
2. route the autonomous vehicle to contracted carwash
3. return car back to service
4. charge customer for the cleanup