Update app.py
Browse files
app.py
CHANGED
|
@@ -35,8 +35,8 @@ def inference(raw_image, question, mnlen, mxlen):
|
|
| 35 |
|
| 36 |
inputs = [gr.inputs.Image(type='pil'),
|
| 37 |
gr.inputs.Textbox(lines=2, label="Question"),
|
| 38 |
-
gr.inputs.Number(
|
| 39 |
-
gr.inputs.Number(
|
| 40 |
|
| 41 |
outputs = gr.outputs.Textbox(label="Output")
|
| 42 |
|
|
|
|
| 35 |
|
| 36 |
inputs = [gr.inputs.Image(type='pil'),
|
| 37 |
gr.inputs.Textbox(lines=2, label="Question"),
|
| 38 |
+
gr.inputs.Number(1, label="Min length"),
|
| 39 |
+
gr.inputs.Number(10, label="Max length")]
|
| 40 |
|
| 41 |
outputs = gr.outputs.Textbox(label="Output")
|
| 42 |
|