import gradio as gr from transformers import pipeline pipe = pipeline("image-classification", model="gaborcselle/font-identifier") def identify(img): res = pipe(img) return res demo = gr.Interface(fn=identify, inputs=gr.Image(type='pil'), outputs="text") demo.launch()