essam24's picture
Create app.py
c067e0f verified
raw
history blame contribute delete
331 Bytes
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)