font-identifier / app.py
tonyassi's picture
Update app.py
c06271c verified
raw
history blame
269 Bytes
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(), outputs="text")
demo.launch()