Spaces:
Sleeping
Sleeping
| 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) |