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

Method browse_model

ML/tests/gui_test.py:313–321  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

311 self.setStyleSheet(qss)
312
313 def browse_model(self):
314 file_path, _ = QFileDialog.getOpenFileName(
315 self,
316 'Select Model File',
317 '../models',
318 'Model Files (*.pt *.pth);;All Files (*.*)'
319 )
320 if file_path:
321 self.model_path_input.setText(file_path)
322
323 def use_default_model(self):
324 default_path = os.path.join(os.path.dirname(__file__), '..', 'models', 'final_model.pt')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected