mrm8488 commited on
Commit
8f189a9
1 Parent(s): 1651e3c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -34,11 +34,11 @@ examples = [
34
  io = gr.Interface(fn=predict,
35
  #inputs=gr.inputs.Image(type='pil'),
36
  inputs=[
37
- gr.inputs.Textbox(value="Describe the following image:"),
38
- gr.inputs.Textbox(label="image URL", placeholder="Insert the URL of the image to be described"),
39
- gr.inputs.Slider(label="Max tokens", value=64, max=128, min=16, step=8)
40
  ],
41
- outputs=gr.outputs.Textbox(label="IDEFICS Description"),
42
  title=title, description=description, examples=examples,
43
  allow_flagging=False, allow_screenshot=False)
44
  io.launch(show_errors=True)
 
34
  io = gr.Interface(fn=predict,
35
  #inputs=gr.inputs.Image(type='pil'),
36
  inputs=[
37
+ gr.Textbox(label="Prompt", value="Describe the following image:"),
38
+ gr.Textbox(label="image URL", placeholder="Insert the URL of the image to be described"),
39
+ gr.Slider(label="Max tokens", value=64, max=128, min=16, step=8)
40
  ],
41
+ outputs=gr.Textbox(label="IDEFICS Description"),
42
  title=title, description=description, examples=examples,
43
  allow_flagging=False, allow_screenshot=False)
44
  io.launch(show_errors=True)