Fixing root path issue with subpath being repeated twice (#7624)
* fixing root path
* add changeset
* add changeset
* fix
* add changeset
* replace tests
* prints
* fix
* add test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>