Spaces:
Sleeping
Sleeping
LiquidoNoNewtoniano
commited on
Commit
•
bde67d8
1
Parent(s):
7d099cf
Update app.py
Browse files
app.py
CHANGED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
from transformers import pipeline
|
3 |
+
|
4 |
+
pipe = pipeline("image-to-text", model="nlpconnect/vit-gpt2-image-captioning")
|
5 |
+
|
6 |
+
demo = gr.Interface( fn=image-to-text, inputs="image", outputs="text" )
|
7 |
+
demo.launch()
|