Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,10 +3,6 @@ import gradio as gr
|
|
| 3 |
from transformers import pipeline
|
| 4 |
|
| 5 |
get_completion = pipeline("image-to-text",model="Salesforce/blip-image-captioning-base")
|
| 6 |
-
|
| 7 |
-
# def summarize(input):
|
| 8 |
-
# output = get_completion(input)
|
| 9 |
-
# return output[0]['generated_text']
|
| 10 |
|
| 11 |
def captioner(image):
|
| 12 |
result = get_completion(image)
|
|
|
|
| 3 |
from transformers import pipeline
|
| 4 |
|
| 5 |
get_completion = pipeline("image-to-text",model="Salesforce/blip-image-captioning-base")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
def captioner(image):
|
| 8 |
result = get_completion(image)
|