brain-tumour-v2 / app.py
essam24's picture
Create app.py
06bfd34 verified
raw
history blame
331 Bytes
import gradio as gr
from transformers import pipeline
pipe = pipeline("image-classification", model="essam24/vit-brain-tumour-v2")
def launch(input):
out = pipe(input)
return out
iface = gr.Interface(launch,
inputs=gr.Image(type='pil'),
outputs="text")
iface.launch(share=True)