awitpao's picture
Create app.py
869e6d5
raw
history blame
528 Bytes
import gradio as gr
from transformers import pipeline
pipe = pipeline(task="image-classification", model="rexoscare/string_instrument_detector")
gr.Interface.from_pipeline(pipe,
title="String Instrument Classification",
description="It will predict the Stringed Instrument",
examples = ["guitar.jpg", "uke.jpg",],
allow_flagging="never"
).launch(inbrowser=True)