Spaces:
Runtime error
Runtime error
chats-bug
commited on
Commit
·
cab88d3
1
Parent(s):
28093e4
Conversion of float callable to int
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ inputs = [
|
|
41 |
gr.inputs.Number(default=1, label="Number of Captions to Generate"),
|
42 |
]
|
43 |
# Determine the number of outputs based on the number of captions to generate.
|
44 |
-
outputs = [gr.outputs.Textbox(label=f"Caption {i+1}") for i in range(inputs[2].value)]
|
45 |
|
46 |
title = "Git-Base-COCO Image Captioning"
|
47 |
description = "A model for generating captions for images."
|
|
|
41 |
gr.inputs.Number(default=1, label="Number of Captions to Generate"),
|
42 |
]
|
43 |
# Determine the number of outputs based on the number of captions to generate.
|
44 |
+
outputs = [gr.outputs.Textbox(label=f"Caption {i+1}") for i in range(int(inputs[2].value))]
|
45 |
|
46 |
title = "Git-Base-COCO Image Captioning"
|
47 |
description = "A model for generating captions for images."
|