Bugfix: `..` in filename throwing error while loading in output. (#7795)
* Exclude filename while preventing path traversal
* add changeset
* add changeset
* Check if path1 is a file and use path1
parent to compare
* explicit
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>