Rather than waiting until a stage is complete before updating stage_status, these changes update stage_status each time is it requested.
The intent is that the GUI polls /state endpoint during training. The endpoint method gets model.stage_status. The Kaldi object's @getter reads the current stage log and causes the object's stage_status to be updated with this new info. Then the newly updated data is returned.
Not sure if this is the best way to do this. Open to suggestions if there are better ways to do it.
Rather than waiting until a stage is complete before updating
stage_status
, these changes updatestage_status
each time is it requested.The intent is that the GUI polls
/state
endpoint during training. The endpoint method getsmodel.stage_status
. The Kaldi object's@getter
reads the current stage log and causes the object's stage_status to be updated with this new info. Then the newly updated data is returned.Not sure if this is the best way to do this. Open to suggestions if there are better ways to do it.