mralamdari commited on
Commit
6b1f053
·
1 Parent(s): 6c78b0a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -43,17 +43,17 @@ title = "Draw to Search"
43
  description = "Using the power of AI to detect the number you draw!"
44
  article = "for source code you can visit [my github](https://github.com/mralamdari)"
45
 
46
- # example_list = [["examples/" + example] for example in os.listdir("examples")]
47
  # interface = gr.Interface(fn=classify_image,
48
  # inputs=gr.Sketchpad(),
49
  # outputs='text')
50
 
51
  interface = gr.Interface(fn=classify_image,
52
- # inputs=gr.Image(type="pil"),
53
- inputs=gr.Sketchpad(),
54
  # outputs=gr.Label(num_top_classes=3, label="Predictions"),
55
  outputs='text',
56
- # examples=example_list,
57
  title=title,
58
  description=description,
59
  article=article)
 
43
  description = "Using the power of AI to detect the number you draw!"
44
  article = "for source code you can visit [my github](https://github.com/mralamdari)"
45
 
46
+ example_list = [["examples/" + example] for example in os.listdir("examples")]
47
  # interface = gr.Interface(fn=classify_image,
48
  # inputs=gr.Sketchpad(),
49
  # outputs='text')
50
 
51
  interface = gr.Interface(fn=classify_image,
52
+ inputs=gr.Image(type="pil"),
53
+ # inputs=gr.Sketchpad(),
54
  # outputs=gr.Label(num_top_classes=3, label="Predictions"),
55
  outputs='text',
56
+ examples=example_list,
57
  title=title,
58
  description=description,
59
  article=article)