Spaces:
Runtime error
Runtime error
| from transformers import pipeline | |
| import gradio as gr | |
| import timm | |
| def image_classifier(image): | |
| model = pipeline("image-classification") | |
| return model(image) | |
| gr.Interface.from_pipeline(model).launch() |