Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -3,8 +3,9 @@ from transformers import pipeline
|
|
3 |
|
4 |
pipe = pipeline("image-classification", model="gaborcselle/font-identifier")
|
5 |
|
6 |
-
def
|
7 |
-
|
|
|
8 |
|
9 |
-
demo = gr.Interface(fn=
|
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()
|