Spaces:
Build error
Build error
Update app.py
Browse files
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 |
-
#
|
| 15 |
-
|
| 16 |
-
|
|
|
|
| 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)
|