File size: 335 Bytes
09d339d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import tensorflow as tf
import helper
    
model = tf.keras.models.load_model("pets")

while True:
  url = input("Please enter an image url:")
  try:
    image = tf.keras.utils.get_file(origin=url)
    image = tf.keras.utils.load_img(image)
    break
  except:
    print("That is not a valid link")

helper.show_predictions(url, model)