Ashish Soni commited on
Commit
d44277d
·
verified ·
1 Parent(s): ade1511

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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