Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
__all__ = ['is_cat', 'learn', 'classify_image', 'categories', 'image', 'label', 'examples', 'intf']
|
2 |
|
3 |
-
from fastai.
|
4 |
import gradio as gr
|
5 |
|
6 |
def is_cat(x): return x[0].isupper()
|
@@ -19,9 +19,3 @@ examples = ['dog.jpg', 'cat.jpg', 'dunno.jpg']
|
|
19 |
|
20 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
21 |
intf.launch(inline=False)
|
22 |
-
|
23 |
-
def greet(name):
|
24 |
-
return "Hello " + name + "!!"
|
25 |
-
|
26 |
-
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
27 |
-
iface.launch()
|
|
|
1 |
__all__ = ['is_cat', 'learn', 'classify_image', 'categories', 'image', 'label', 'examples', 'intf']
|
2 |
|
3 |
+
from fastai.vision.all import *
|
4 |
import gradio as gr
|
5 |
|
6 |
def is_cat(x): return x[0].isupper()
|
|
|
19 |
|
20 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
21 |
intf.launch(inline=False)
|
|
|
|
|
|
|
|
|
|
|
|