John Smith commited on
Commit
edb8459
·
1 Parent(s): 45bd361

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,7 +7,7 @@ import numpy as np
7
  model = load_model('eee.keras')
8
 
9
  def image_mod(image_mod):
10
- img = cv2.imread("Daedalus_000355_171913_516869_4578_(36155269413).jpg")
11
  resize = tf.image.resize(img, (256, 256))
12
  plt.imshow(resize.numpy().astype(int))
13
  yhat = model.predict(np.expand_dims(resize,0))
@@ -22,7 +22,7 @@ def image_mod(image_mod):
22
  if display == "3":
23
  message = "Snowy"
24
  if display == "4":
25
- message = "Sunny"
26
  return message
27
 
28
  gr.Interface(fn=image_mod,
 
7
  model = load_model('eee.keras')
8
 
9
  def image_mod(image_mod):
10
+ img = cv2.imread("Jida,_Zhuhai,_rainy_day.jpg")
11
  resize = tf.image.resize(img, (256, 256))
12
  plt.imshow(resize.numpy().astype(int))
13
  yhat = model.predict(np.expand_dims(resize,0))
 
22
  if display == "3":
23
  message = "Snowy"
24
  if display == "4":
25
+ message = "Sunny" # Daedalus_000355_171913_516869_4578_(36155269413).jpg
26
  return message
27
 
28
  gr.Interface(fn=image_mod,