Spaces:
Sleeping
Sleeping
import gradio as gr | |
from fastbook import * | |
learn = load_learner('BirdOrForest.pkl') | |
image = gr.inputs.Image(shape=(224, 224)) | |
label = gr.outputs.Label() | |
path = Path("Examples") | |
examples = [[path/"1.jpg"], [path/"2.jpg"], [path/"3.jpg"], [path/"4.jpg"]] | |
def prediction(img): | |
return | |
demo = gr.Interface(fn=prediction, inputs=image, outputs=label, examples=examples) | |
demo.launch(inline = False) |