title: How can I read in a remote image file in Tensorflow for classification?
body: <p>I trained a classifier in the <a href="https://codelabs.developers.google.com/codelabs/tensorflow-for-poets/#0" rel="nofollow">Tensorflow for Poets tutorial</a>.</p>
  
  <p>Works great locally, but how can I modify this to use images when I have a URL?</p>
  
  <pre><code>   import tensorflow as tf
  
     # change this as you see fit
     image_path = sys.argv[1]
  
     # Read in the image_data
     image_data = tf.gfile.FastGFile(image_path, 'rb').read()
  </code></pre>
  
  <p>But how can I classify images from an external url? e.g. <code>http://www.google.com/logo.png</code></p>