Spaces:
Sleeping
Sleeping
Ashish Soni
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -39,8 +39,7 @@ def captioner(input: Image.Image) -> str:
|
|
39 |
Returns:
|
40 |
str: The generated caption text.
|
41 |
"""
|
42 |
-
|
43 |
-
base64_image = image_to_base64_str(image)
|
44 |
output = get_completion(base64_image)
|
45 |
return output[0]['generated_text']
|
46 |
|
|
|
39 |
Returns:
|
40 |
str: The generated caption text.
|
41 |
"""
|
42 |
+
base64_image = image_to_base64_str(input)
|
|
|
43 |
output = get_completion(base64_image)
|
44 |
return output[0]['generated_text']
|
45 |
|