michael20at commited on
Commit
6cabcef
·
verified ·
1 Parent(s): 7e15f9e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -1,3 +1,5 @@
 
 
1
  from fastai.vision.all import *
2
  import gradio as gr
3
 
@@ -11,6 +13,6 @@ image = gr.inputs.Image(shape=(192,192))
11
  label = gr.outputs.Label()
12
  examples = ["5.png"]
13
 
14
- #iface = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
15
- iface = gr.Interface(fn=classify_image, inputs="text", outputs="text")
16
- iface.launch(inline=False)
 
1
+ __all__ = ['learn', 'classicy_image', 'categories', 'image', 'label', 'examples', 'intf']
2
+
3
  from fastai.vision.all import *
4
  import gradio as gr
5
 
 
13
  label = gr.outputs.Label()
14
  examples = ["5.png"]
15
 
16
+ #intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
17
+ intf = gr.Interface(fn=classify_image, inputs="text", outputs="text")
18
+ intf.launch(inline=False)