Spaces:
Runtime error
Runtime error
chats-bug
commited on
Commit
•
8ca734f
1
Parent(s):
2e7d5a4
Changed number inputs to slider
Browse files
app.py
CHANGED
@@ -39,8 +39,8 @@ def generate_captions(
|
|
39 |
|
40 |
inputs = [
|
41 |
gr.inputs.Image(type="pil", label="Image"),
|
42 |
-
gr.inputs.
|
43 |
-
gr.inputs.
|
44 |
]
|
45 |
# Determine the number of outputs based on the number of captions to generate.
|
46 |
outputs = gr.outputs.Textbox(label="Captions")
|
@@ -60,4 +60,5 @@ interface = gr.Interface(
|
|
60 |
if __name__ == "__main__":
|
61 |
interface.launch(
|
62 |
enable_queue=True,
|
|
|
63 |
)
|
|
|
39 |
|
40 |
inputs = [
|
41 |
gr.inputs.Image(type="pil", label="Image"),
|
42 |
+
gr.inputs.Slider(minimum=20, maximum=100, step=5, default=50, label="Maximum Caption Length"),
|
43 |
+
gr.inputs.Slider(minimum=1, maximum=10, step=1, default=1, label="Number of Captions to Generate"),
|
44 |
]
|
45 |
# Determine the number of outputs based on the number of captions to generate.
|
46 |
outputs = gr.outputs.Textbox(label="Captions")
|
|
|
60 |
if __name__ == "__main__":
|
61 |
interface.launch(
|
62 |
enable_queue=True,
|
63 |
+
debug=True
|
64 |
)
|