Describe the bug
If a function returns a gr.update(), it will not work correctly with example caching. Here are a couple of failure modes:
(1) The caching does not happen at all, and an Exception is thrown
Example:
import gradio as gr
io = gr.Interface(lambda x: gr.update(visible=False), "textbox", "html", examples=["hi"], cache_examples=True).launch()
Error:
AttributeError: 'dict' object has no attribute 'startswith'
(2) Caching happens without error, but when the example is clicked, the update does not happen as expected:
Example:
import gradio as gr
io = gr.Interface(lambda x: gr.update(visible=False), "textbox", "textbox", examples=["hi"], cache_examples=True).launch()
Error:

Is there an existing issue for this?
Reproduction
See above
Screenshot
See above
Logs
System Info
Severity
serious, but I can work around it
Describe the bug
If a function returns a
gr.update(), it will not work correctly with example caching. Here are a couple of failure modes:(1) The caching does not happen at all, and an Exception is thrown
Example:
Error:
(2) Caching happens without error, but when the example is clicked, the update does not happen as expected:
Example:
Error:
Is there an existing issue for this?
Reproduction
See above
Screenshot
See above
Logs
System Info
Severity
serious, but I can work around it