John Smith commited on
Commit
eca103d
·
1 Parent(s): 6b04eb4

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("640px-Foggy_Coastline.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))
@@ -28,4 +28,4 @@ def image_mod(image_mod):
28
  gr.Interface(fn=image_mod,
29
  inputs=gr.Image(shape=(256, 256)),
30
  outputs=gr.Label(num_top_classes=3),
31
- examples=["Daedalus_000355_171913_516869_4578_(36155269413).jpg","Utah_solar;_a_photovoltaic_power_station_(36293687776).jpg","640px-Foggy_Coastline.JPG","Jida,_Zhuhai,_rainy_day.jpg","Snow_on_Branches,_Beechview,_2020-12-17,_01.jpg"]).launch()
 
7
  model = load_model('eee.keras')
8
 
9
  def image_mod(image_mod):
10
+ img = cv2.imread("Foggy_morning_Bucharest.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))
 
28
  gr.Interface(fn=image_mod,
29
  inputs=gr.Image(shape=(256, 256)),
30
  outputs=gr.Label(num_top_classes=3),
31
+ examples=["Daedalus_000355_171913_516869_4578_(36155269413).jpg","Utah_solar;_a_photovoltaic_power_station_(36293687776).jpg","Foggy_morning_Bucharest.jpg","Jida,_Zhuhai,_rainy_day.jpg","Snow_on_Branches,_Beechview,_2020-12-17,_01.jpg"]).launch()