Add media validation, improve code readability, and fix bugs 8e0af08 hysts HF Staff commited on Mar 14, 2025