Spaces:
Runtime error
Runtime error
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
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()
|