Spaces:
Sleeping
Sleeping
File size: 331 Bytes
c067e0f |
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-v1")
def launch(input):
out = pipe(input)
return out
iface = gr.Interface(launch,
inputs=gr.Image(type='pil'),
outputs="text")
iface.launch(share=True) |