public void updateCurrentTabTitle(String title) { TabContext tabContext = TabContext.getCurrentInstance(); int currentTabIndex = tabContext.getSelectedTabIndex(); Tab tab = tabContext.getTabs().get(currentTabIndex); tab.setTitle(title); //force refresh tabContext.setSelectedTabIndex(currentTabIndex); }Be sure that you have defined a "tabContext" input parameter in your task flow definition so you can access the TabContext object.
PaddleOCR 3.1 Setup in FastAPI
3 weeks ago