fix: prevent internal log_message error from `/api/predict` (#5711)
* Prevent erroring on log_message from /api/predict
* add changeset
* add changeset
* add changeset
* updated docstrings
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>