Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -28,7 +28,7 @@ def inference(raw_image, question, decoding_strategy):
|
|
28 |
|
29 |
inputs = [
|
30 |
gr.inputs.Image(type='pil'),
|
31 |
-
gr.inputs.Textbox(lines=2, label="Context"),
|
32 |
gr.inputs.Radio(choices=['Beam search','Nucleus sampling'], type="value", default="Nucleus sampling", label="Caption Decoding Strategy")
|
33 |
]
|
34 |
outputs = gr.outputs.Textbox(label="Output")
|
|
|
28 |
|
29 |
inputs = [
|
30 |
gr.inputs.Image(type='pil'),
|
31 |
+
gr.inputs.Textbox(lines=2, label="Context (optional)"),
|
32 |
gr.inputs.Radio(choices=['Beam search','Nucleus sampling'], type="value", default="Nucleus sampling", label="Caption Decoding Strategy")
|
33 |
]
|
34 |
outputs = gr.outputs.Textbox(label="Output")
|