John Smith commited on
Commit
b00effd
·
1 Parent(s): b02481e

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-Cloudy_Sky2.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))
@@ -18,4 +18,4 @@ def image_mod(image_mod):
18
  gr.Interface(fn=image_mod,
19
  inputs=gr.Image(shape=(256, 256)),
20
  outputs=gr.Label(num_top_classes=3),
21
- examples=["Daedalus_000355_171913_516869_4578_(36155269413).jpg","640px-Cloudy_Sky2.JPG","Foggy_day_of_Riga.jpg","Jida,_Zhuhai,_rainy_day.jpg","Sušárna_a_panely.JPG"]).launch()
 
7
  model = load_model('eee.keras')
8
 
9
  def image_mod(image_mod):
10
+ img = cv2.imread("Utah_solar;_a_photovoltaic_power_station_(36293687776).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))
 
18
  gr.Interface(fn=image_mod,
19
  inputs=gr.Image(shape=(256, 256)),
20
  outputs=gr.Label(num_top_classes=3),
21
+ examples=["Daedalus_000355_171913_516869_4578_(36155269413).jpg","Utah_solar;_a_photovoltaic_power_station_(36293687776).jpg","Foggy_day_of_Riga.jpg","Jida,_Zhuhai,_rainy_day.jpg","Sušárna_a_panely.JPG"]).launch()