iammrrobot420 commited on
Commit
4b1e401
·
verified ·
1 Parent(s): 7ab2903

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ def get_image_caption(image):
15
  image = image.convert("RGB")
16
 
17
  # max_new_tokens: limit tokens to trade detail for speed
18
- result = pipe(image,text="The person is", max_new_tokens=32)
19
  return result[0]['generated_text']
20
 
21
  # api w/ gradio
 
15
  image = image.convert("RGB")
16
 
17
  # max_new_tokens: limit tokens to trade detail for speed
18
+ result = pipe(image,text="The person is", max_new_tokens=240)
19
  return result[0]['generated_text']
20
 
21
  # api w/ gradio