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

Method browse_image

ML/src/python/neuralforge/cli/gui.py:341–350  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

339 self.model_path_input.setText(os.path.abspath(default_path))
340
341 def browse_image(self):
342 file_path, _ = QFileDialog.getOpenFileName(
343 self,
344 'Select Image File',
345 '',
346 'Image Files (*.png *.jpg *.jpeg *.bmp *.gif);;All Files (*.*)'
347 )
348 if file_path:
349 self.image_path_input.setText(file_path)
350 self.display_image(file_path)
351
352 def display_image(self, image_path):
353 try:

Callers

nothing calls this directly

Calls 1

display_imageMethod · 0.95

Tested by

no test coverage detected