I made the following code that should recognize the image imported from the pc. If I do it for the first time it's fine, but if I load a second image it leaves me the name of the previous one. You could check the code and tell me where I'm wrong. Thanks for your help.
Row[{FileNameSetter[Dynamic[file]], Dynamic[file]}]
Button["Load file", im = Import[file]]
Dynamic[im]
Row[{"Si tratta di un ",
ImageIdentify[im,
Entity["Species", "Infraspecies:CanisLupusFamiliaris"]]}]