Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,7 @@ import gradio as gr
|
|
| 3 |
from transformers import pipeline
|
| 4 |
|
| 5 |
pipe = pipeline("image-to-text",
|
| 6 |
-
model="
|
| 7 |
|
| 8 |
def launch(input):
|
| 9 |
out = pipe(input)
|
|
@@ -13,4 +13,4 @@ iface = gr.Interface(launch,
|
|
| 13 |
inputs=gr.Image(type='pil'),
|
| 14 |
outputs="text")
|
| 15 |
|
| 16 |
-
iface.launch(
|
|
|
|
| 3 |
from transformers import pipeline
|
| 4 |
|
| 5 |
pipe = pipeline("image-to-text",
|
| 6 |
+
model="blip-image-captioning-base")
|
| 7 |
|
| 8 |
def launch(input):
|
| 9 |
out = pipe(input)
|
|
|
|
| 13 |
inputs=gr.Image(type='pil'),
|
| 14 |
outputs="text")
|
| 15 |
|
| 16 |
+
iface.launch()
|