daniyal214
commited on
Commit
·
e904b51
1
Parent(s):
869cefd
Update app.py
Browse files
app.py
CHANGED
@@ -3,8 +3,8 @@ from transformers import pipeline
|
|
3 |
|
4 |
pipe = pipeline("image-to-text", model="daniyal214/finetuned-blip-chest-xrays")
|
5 |
|
6 |
-
def get_captions(
|
7 |
-
result = pipe(
|
8 |
result = result[0]['generated_text']
|
9 |
return result
|
10 |
|
|
|
3 |
|
4 |
pipe = pipeline("image-to-text", model="daniyal214/finetuned-blip-chest-xrays")
|
5 |
|
6 |
+
def get_captions(image):
|
7 |
+
result = pipe(image)
|
8 |
result = result[0]['generated_text']
|
9 |
return result
|
10 |
|