Spaces:
Sleeping
Sleeping
Update app.py
#1
by
iammrrobot420
- opened
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=
|
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
|