Open bergerchris opened 3 weeks ago
Any news on this or maybe a workaround? At the moment I don't know what to do here.
For anyone who has the same error and is looking for a quick way to fix this. I monkey patched it with this:
from gradio.processing_utils import PUBLIC_HOSTNAME_WHITELIST
PUBLIC_HOSTNAME_WHITELIST.append("127.0.0.1")
Describe the bug
I am using the component File as an output to make some created files available. The input for the component is an url. This worked with version 4.29.0 but is now broken. It throws an ValueError: Hostname 127.0.0.1 failed validation.
I can fix the error by adding 127.0.0.1 to PUBLIC_HOSTNAME_WHITELIST = ["hf.co", "huggingface.co"] in processing_utils.py. So basically I need an option to add trusted hostname to the list or maybe there is another option to deactivate this validation?
Have you searched existing issues? 🔎
Reproduction
Screenshot
No response
Logs
System Info
Severity
Blocking usage of gradio