Spaces:
Sleeping
Sleeping
File size: 318 Bytes
e11fcec |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import gradio as gr
from transformers import pipeline
pipe = pipeline("image-classification", model="essam24/vit-brain-tumour")
def launch(input):
out = pipe(input)
return out
iface = gr.Interface(launch,
inputs=gr.Image(type='pil'),
outputs="text")
iface.launch() |