Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ from transformers import pipeline
|
|
| 5 |
pipe = pipeline("image-to-text",
|
| 6 |
model="Salesforce/blip-image-captioning-base")
|
| 7 |
|
| 8 |
-
|
| 9 |
def launch(input):
|
| 10 |
out = pipe(input)
|
| 11 |
return out[0]['generated_text']
|
|
|
|
| 5 |
pipe = pipeline("image-to-text",
|
| 6 |
model="Salesforce/blip-image-captioning-base")
|
| 7 |
|
| 8 |
+
@spaces.GPU
|
| 9 |
def launch(input):
|
| 10 |
out = pipe(input)
|
| 11 |
return out[0]['generated_text']
|