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
I can work around it by refreshing the page, however, if it works as expected, it will be more ergonomic and make the development experience more enjoyable and less disruptive.
The text was updated successfully, but these errors were encountered:
Facing the same issue. I need render decorator to get called on refresh page, so component is loaded using app state rather than static value at the time interface launch.
Is there any other option or workaround to achieve this until the issue is fixed?
timestamp_text = gr.Text(value=f'Last active at {app_state.state['last_sync']}', label='Last activity timestamp')
@gr.render(inputs=timestamp_text)
def show_ts(text):
# Get latest value saved in state
gr.Text(value=f'Last active at {app_state.state['last_sync']}', label='Last activity timestamp')
Describe the bug
Auto-Reloading doesn't run the
@gr.render(...)
decorated function if the input is a gr.State object.Have you searched existing issues? 🔎
Reproduction
https://www.gradio.app/guides/dynamic-apps-with-render-decorator#dynamic-event-listeners
it should render correctly like this:
Add a Box
and wait for auto-reloading to re-renderScreenshot
No response
Logs
No response
System Info
Severity
I can work around it by refreshing the page, however, if it works as expected, it will be more ergonomic and make the development experience more enjoyable and less disruptive.
The text was updated successfully, but these errors were encountered: