Spaces:
Sleeping
Sleeping
Ashish Soni
commited on
Commit
·
1ec0b15
1
Parent(s):
6d66457
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ from transformers import pipeline
|
|
3 |
|
4 |
get_completion = pipeline("image-to-text",model="Salesforce/blip-image-captioning-base")
|
5 |
|
6 |
-
def
|
7 |
output = get_completion(input)
|
8 |
return output[0]['generated_text']
|
9 |
|
|
|
3 |
|
4 |
get_completion = pipeline("image-to-text",model="Salesforce/blip-image-captioning-base")
|
5 |
|
6 |
+
def captioner(input):
|
7 |
output = get_completion(input)
|
8 |
return output[0]['generated_text']
|
9 |
|