fierce74 commited on
Commit
862a7db
1 Parent(s): d14064e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -12,11 +12,9 @@ def classify_img(img):
12
 
13
  image = gr.inputs.Image(shape=(224,224))
14
  label = gr.outputs.Label()
15
- e = ['elliptical.jpg', 'irregular.jpg', 'spiral.jpg']
16
- examples = []
17
  for img in examples:
18
  img = Image.open(img)
19
  img = img.resize((224,224), Image.NEAREST)
20
- examples.append(img)
21
  iface = gr.Interface(fn = classify_img, inputs = image, outputs = label, title = 'Galaxy Classifier', examples = examples)
22
  iface.launch()
 
12
 
13
  image = gr.inputs.Image(shape=(224,224))
14
  label = gr.outputs.Label()
15
+ examples = ['elliptical.jpg', 'irregular.jpg', 'spiral.jpg']
 
16
  for img in examples:
17
  img = Image.open(img)
18
  img = img.resize((224,224), Image.NEAREST)
 
19
  iface = gr.Interface(fn = classify_img, inputs = image, outputs = label, title = 'Galaxy Classifier', examples = examples)
20
  iface.launch()