New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
root_path
does not get handled correctly in custom components
#6748
Comments
Hi @futurestandard as this is not a core gradio component, the best place to open the issue would be on the repo for the particular custom component. For example, here for the custom PDF component: https://github.com/freddyaboulton/gradio-pdf |
Hi @abidlabs |
Ah I see, thanks @futurestandard for explaining |
root_path
does not get handled correctly in custom components
+1 |
Hi @futurestandard ! Thanks for filing the issue. Can you give us some steps to reproduce this issue? How can we install the gradio_fs005 component? Does this error happen when you run dev mode? Or after the component is installed locally on your remote server. Does the demo work locally for you? Thanks! |
Hi @freddyaboulton , I clone exactly this https://huggingface.co/spaces/freddyaboulton/gradio_multimodalchatbot on our remote server, which is behind a proxy and can only be accessible with a url like With this, I have to set On the flip side, why don't you add the multi-modal components to core components as well? My gradio version is 4.10 |
Hi @nxphi47 ! And did you build the component after cloning it? |
@freddyaboulton Yes, I See screenshot below, it requests |
@freddyaboulton nginx server.conf is
}` and I installed normal access code def is_weekday(date: datetime.datetime): demo = gr.Interface(is_weekday, demo.launch(server_port=50002, server_name="0.0.0.0")` is fine. reverse proxy code def is_weekday(date: datetime.datetime): demo = gr.Interface(is_weekday, demo.launch(server_port=50002, server_name="0.0.0.0",root_path="/71b01c2c359b190aa4dfbb280a339db11b02efae5587441caaf8ee740b868e26")` cause continuous loop because style.css path have not been refrected for root_path settings. not only gradio-calendar, other pip custom-components and self-build conponents have same issue. |
Describe the bug
I try custom component using root_path setting, but style.css path is wrong.
I want to use reverse proxy, so could you apply root_path setting to custom component and pip installed custom component.
-https://pypi.org/project/gradio-pdf/
-https://pypi.org/project/gradio-datepicker/
Have you searched existing issues? 🔎
Reproduction
Screenshot
Logs
No response
System Info
Severity
Blocking usage of gradio
The text was updated successfully, but these errors were encountered: