mshukor
commited on
Commit
•
e9b379d
1
Parent(s):
f7812b1
fix
Browse files
app.py
CHANGED
@@ -163,7 +163,7 @@ def inference(image, task_type, instruction):
|
|
163 |
return response
|
164 |
|
165 |
|
166 |
-
inputs = [gr.inputs.Image(type='pil'), gr.
|
167 |
outputs = ['text']
|
168 |
examples = [
|
169 |
['examples/images/soccer.jpg', 'Image Captioning', None],
|
|
|
163 |
return response
|
164 |
|
165 |
|
166 |
+
inputs = [gr.inputs.Image(type='pil'), gr.inputs.Radio(choices=['Image Captioning', "Visual Question Answering",], type="value", default="Image Captioning", label="Task"), gr.inputs.Textbox(lines=1, label="Instruction")]
|
167 |
outputs = ['text']
|
168 |
examples = [
|
169 |
['examples/images/soccer.jpg', 'Image Captioning', None],
|