Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,8 +2,9 @@ import os
|
|
2 |
import gradio as gr
|
3 |
from transformers import pipeline
|
4 |
|
5 |
-
|
6 |
-
|
|
|
7 |
|
8 |
def launch(input):
|
9 |
out = pipe(input)
|
|
|
2 |
import gradio as gr
|
3 |
from transformers import pipeline
|
4 |
|
5 |
+
|
6 |
+
pipe = pipeline("image-to-text", model="Salesforce/blip-image-captioning-base")
|
7 |
+
|
8 |
|
9 |
def launch(input):
|
10 |
out = pipe(input)
|