Julian Bilcke commited on
Commit ·
7bce2a2
1
Parent(s): f5aa730
fix error regarding progress
Browse filesFiles changed (3)
398 unmodified lines399400401402403404405398 unmodified linesoutputs=[self.project_tabs["train_tab"].components["status_box"],self.project_tabs["train_tab"].components["log_box"],self.project_tabs["train_tab"].components["current_task_box"] if "current_task_box" in self.project_tabs["train_tab"].components else None])398 unmodified lines399400401402403404405406407398 unmodified linesoutputs=[self.project_tabs["train_tab"].components["status_box"],self.project_tabs["train_tab"].components["log_box"],self.project_tabs["train_tab"].components["current_task_box"] if "current_task_box" in self.project_tabs["train_tab"].components else None,self.project_tabs["manage_tab"].components["download_model_btn"],self.project_tabs["manage_tab"].components["download_checkpoint_btn"]])
87 unmodified lines88899091929394959687 unmodified linesgr.Markdown(model.model_display_name or "Unknown")with gr.Column(scale=2, min_width=20):progress_text = f"Step {model.current_step}/{model.total_steps}"gr.Markdown(progress_text)gr.Progress(value=model.training_progress/100)with gr.Column(scale=2, min_width=20):with gr.Row():87 unmodified lines888990919293949587 unmodified linesgr.Markdown(model.model_display_name or "Unknown")with gr.Column(scale=2, min_width=20):progress_text = f"Step {model.current_step}/{model.total_steps} ({model.training_progress:.1f}%)"gr.Markdown(progress_text)with gr.Column(scale=2, min_width=20):with gr.Row():
1200 unmodified lines12011202120312041205120612071200 unmodified linesif hasattr(self.app, 'log_parser') and self.app.log_parser is not None:current_task = self.app.log_parser.get_current_task_display()return message, logs, current_taskdef get_button_updates(self):"""Get button updates (with variant property)"""1200 unmodified lines1201120212031204120512061207120812091210121112121200 unmodified linesif hasattr(self.app, 'log_parser') and self.app.log_parser is not None:current_task = self.app.log_parser.get_current_task_display()# Update download button textsmanage_tab = self.app.tabs["manage_tab"]download_btn_text = gr.update(value=manage_tab.get_download_button_text())checkpoint_btn_text = gr.update(value=manage_tab.get_checkpoint_button_text())return message, logs, current_task, download_btn_text, checkpoint_btn_textdef get_button_updates(self):"""Get button updates (with variant property)"""
vms/ui/app_ui.py+3-1
vms/ui/models/tabs/training_tab.py+1-2
vms/ui/project/tabs/train_tab.py+6-1