File size: 248 Bytes
89ddba3
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
import gradio as gr
from transformers import pipeline

pipe = pipeline("image-classification", model="gaborcselle/font-identifier")

def greet(img):
    return "Hello "

demo = gr.Interface(fn=greet, inputs=gr.Image(), outputs="text")
demo.launch()