(self)
| 325 | self.model_path_input.setText(os.path.abspath(default_path)) |
| 326 | |
| 327 | def browse_image(self): |
| 328 | file_path, _ = QFileDialog.getOpenFileName( |
| 329 | self, |
| 330 | 'Select Image File', |
| 331 | '', |
| 332 | 'Image Files (*.png *.jpg *.jpeg *.bmp *.gif);;All Files (*.*)' |
| 333 | ) |
| 334 | if file_path: |
| 335 | self.image_path_input.setText(file_path) |
| 336 | self.display_image(file_path) |
| 337 | |
| 338 | def display_image(self, image_path): |
| 339 | try: |
nothing calls this directly
no test coverage detected