Spaces:
Sleeping
Sleeping
Forcing re-build?
Browse files
app.py
CHANGED
|
@@ -7,10 +7,9 @@ pipe = pipeline("image-to-text",
|
|
| 7 |
model="Salesforce/blip-image-captioning-base")
|
| 8 |
|
| 9 |
|
| 10 |
-
|
| 11 |
def launch(input):
|
| 12 |
-
|
| 13 |
-
return
|
| 14 |
|
| 15 |
|
| 16 |
iface = gr.Interface(fn=launch,
|
|
|
|
| 7 |
model="Salesforce/blip-image-captioning-base")
|
| 8 |
|
| 9 |
|
|
|
|
| 10 |
def launch(input):
|
| 11 |
+
output = pipe(input)
|
| 12 |
+
return output[0]['generated_text']
|
| 13 |
|
| 14 |
|
| 15 |
iface = gr.Interface(fn=launch,
|