You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
root_path is not properly working when mounting gradio application to fastapi as theme.css becomes unaccessible. Looks like how the theme file is being accessed changed from 4.20.1 to 4.21.0. Interestingly, when deployed and used with localhost, it works an intended on gradio on 5.16.0, only when deployed on a https webserver its not able to find the theme.css. However neither the 4.20.1, 4.21.0 or 5.16.0 work properly as they all show 404 connection loss when actually submitting a job. With gradio==5.16.0 and no FastAPI mount the program works as intended but I need to mount it using FastAPI to get use external authentication which is absolutely neccessary.
Describe the bug
root_path is not properly working when mounting gradio application to fastapi as theme.css becomes unaccessible. Looks like how the theme file is being accessed changed from 4.20.1 to 4.21.0. Interestingly, when deployed and used with localhost, it works an intended on gradio on 5.16.0, only when deployed on a https webserver its not able to find the theme.css. However neither the 4.20.1, 4.21.0 or 5.16.0 work properly as they all show 404 connection loss when actually submitting a job. With gradio==5.16.0 and no FastAPI mount the program works as intended but I need to mount it using FastAPI to get use external authentication which is absolutely neccessary.
Have you searched existing issues? 🔎
Reproduction
uvicorn --host "0.0.0.0" --proxy-headers --port 7860 serve:app
Screenshot
Gradio==4.21.0 to gradio==5.16.0

Gradio==4.20.1

gradio==5.16.0 w/ Localhost

gradio==5.16.0 w/o FastAPI
ENV GRADIO_SERVER_NAME="0.0.0.0"
GRADIO_ROOT_PATH="/chat/tech-library"
gradio==5.16.0 w/ FastAPI but w/o RootPath

Logs
System Info
Severity
Blocking usage of gradio
The text was updated successfully, but these errors were encountered: