I have a google colab jupyter notebook, it currently read file form a remote path (this paths are stored in a imData['path']). I want to modify the code that a user can use a file from his computer and drag-and-drop it in the interface. Can you update the code accordingly for imData in testSet:
 ti = numpy.array(Image.open(BytesIO(requests.get(imData['path']).content)))/255.;
 print(ti.shape)
 outputShape=(50,50)
 if len(ti.shape)>2:
 outputShape+=(ti.shape[2],)
 dt=numpy.zeros(ti.shape[2],);
 else:
 dt=numpy.zeros((1,));
 simulation,tCPU=g2s('-a','qs','-ti',ti,'-di',numpy.zeros(outputShape)\*numpy.nan,'-dt',dt,'-k',1,'-n',15,'-j',0.5);
 fig, (ax1, ax2) = plt.subplots(1, 2)
 fig.suptitle('Unconditional simulation')
 ax1.imshow(ti)
 ax1.set\_title('Training image');
 ax1.axis('off');
 ax2.imshow(simulation)
 ax2.set\_title('Simulation');
 ax2.axis('off');
 plt.show()
user