tonyassi commited on
Commit
c06271c
·
verified ·
1 Parent(s): 79105f5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -3,8 +3,9 @@ from transformers import pipeline
3
 
4
  pipe = pipeline("image-classification", model="gaborcselle/font-identifier")
5
 
6
- def greet(img):
7
- return "Hello "
 
8
 
9
- demo = gr.Interface(fn=greet, inputs=gr.Image(), outputs="text")
10
  demo.launch()
 
3
 
4
  pipe = pipeline("image-classification", model="gaborcselle/font-identifier")
5
 
6
+ def identify(img):
7
+ res = pipe(img)
8
+ return res
9
 
10
+ demo = gr.Interface(fn=identify, inputs=gr.Image(), outputs="text")
11
  demo.launch()