MCPcopy Create free account
hub / github.com/geekcomputers/Python / display_error

Method display_error

ML/tests/gui_test.py:478–483  ·  view source on GitHub ↗
(self, error_msg)

Source from the content-addressed store, hash-verified

476 self.top5_display.setHtml(top5_text)
477
478 def display_error(self, error_msg):
479 self.progress_bar.setVisible(False)
480 self.predict_btn.setEnabled(True)
481
482 self.main_prediction.setText(f'Error: {error_msg}')
483 self.main_prediction.setStyleSheet('color: #f44336;')
484
485def main():
486 app = QApplication(sys.argv)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected