Spaces:
Running
Running
File size: 279 Bytes
89ddba3 c06271c 89ddba3 cb37313 89ddba3 |
1 2 3 4 5 6 7 8 9 10 11 |
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() |