mahmohajer commited on
Commit
615db94
·
1 Parent(s): 511270d

fixing the typos

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,5 +1,6 @@
1
  import gradio as gr
2
  from fastai.vision.all import *
 
3
 
4
  def label_func(fname):
5
  pattern = r'(FRESH|HALF-FRESH|SPOILED)-\d+-'
@@ -18,7 +19,7 @@ def classify_image(img):
18
 
19
  image = gr.Image(height=280, width=340, type='numpy')
20
  label = gr.Label()
21
- examples = ['fresh.jpg', 'semi-fresh.jpg', 'rotten meat.jpg']
22
 
23
  intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
24
  intf.launch(inline=False)
 
1
  import gradio as gr
2
  from fastai.vision.all import *
3
+ import re
4
 
5
  def label_func(fname):
6
  pattern = r'(FRESH|HALF-FRESH|SPOILED)-\d+-'
 
19
 
20
  image = gr.Image(height=280, width=340, type='numpy')
21
  label = gr.Label()
22
+ examples = ['fresh.jpg', 'semi-fresh.jpg', 'rotten meat.jpeg']
23
 
24
  intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
25
  intf.launch(inline=False)