Spaces:
Sleeping
Sleeping
added docstring for describe_image
Browse files
app.py
CHANGED
|
@@ -24,6 +24,9 @@ image_captioner = pipeline(
|
|
| 24 |
)
|
| 25 |
|
| 26 |
def describe_image(path):
|
|
|
|
|
|
|
|
|
|
| 27 |
return image_captioner(path)[0]["generated_text"]
|
| 28 |
|
| 29 |
|
|
|
|
| 24 |
)
|
| 25 |
|
| 26 |
def describe_image(path):
|
| 27 |
+
"""Describes the image. requires image path. return image description.
|
| 28 |
+
Args: path of image
|
| 29 |
+
"""
|
| 30 |
return image_captioner(path)[0]["generated_text"]
|
| 31 |
|
| 32 |
|