I think it really depends on your use case and how you would like your application to work.
Should the user provide a single image which will be processed or a whole bunch of images?
The “Apply CNN” button might just execute a small method which will e.g. classify the currently selected image etc.
What are you planning to do with the application?