Open pablovela5620 opened 1 month ago
Oh neat! I hadn't realized Gradio could do that. Would be super nice to just cache and serve an rrd for each example.
yes the examples should work. I need to check in case lazy
mode enabled, does the backend component need anything special
I'm working on a fix here https://github.com/radames/gradio-rerun-viewer/tree/fix-cache-examples, but still having an issue I think there must be something on the Gradio side, I've asked for help
payload = self.data_model.from_json(payload)
File "/gradio-rerun-viewer/venv/lib/python3.10/site-packages/gradio/data_classes.py", line 186, in from_json
return cls(root=x)
File "/gradio-rerun-viewer/venv/lib/python3.10/site-packages/pydantic/root_model.py", line 71, in __init__
self.__pydantic_validator__.validate_python(root, self_instance=self)
pydantic_core._pydantic_core.ValidationError: 1 validation error for RerunData
Input should be a valid list
For further information visit https://errors.pydantic.dev/2.7/v/list_type
I'm working on a fix here https://github.com/radames/gradio-rerun-viewer/tree/fix-cache-examples, but still having an issue I think there must be something on the Gradio side, I've asked for help
payload = self.data_model.from_json(payload) File "/gradio-rerun-viewer/venv/lib/python3.10/site-packages/gradio/data_classes.py", line 186, in from_json return cls(root=x) File "/gradio-rerun-viewer/venv/lib/python3.10/site-packages/pydantic/root_model.py", line 71, in __init__ self.__pydantic_validator__.validate_python(root, self_instance=self) pydantic_core._pydantic_core.ValidationError: 1 validation error for RerunData Input should be a valid list For further information visit https://errors.pydantic.dev/2.7/v/list_type
With 0.17 on the horizon, did you end up finding a fix for this?
Settings examples to True or
lazy
breaks things and I get the following error. You can test using this code https://github.com/pablovela5620/mini-dpvo, and adding
cache_examples=True
here