chats-bug commited on
Commit
43f7561
1 Parent(s): 7f9b1d3

Fixed the examples

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -9,7 +9,7 @@ MODELS = {
9
  "Blip Base": BlipBaseModel,
10
  }
11
 
12
- examples = [["Image1.png"], ["Image2.png"], ["Image3.png"]]
13
 
14
  def generate_captions(
15
  image,
@@ -82,7 +82,12 @@ interface = gr.Interface(
82
  outputs=[
83
  gr.components.Textbox(label="Caption"),
84
  ],
85
- examples=examples,
 
 
 
 
 
86
  title=title,
87
  description=description,
88
  allow_flagging="never",
 
9
  "Blip Base": BlipBaseModel,
10
  }
11
 
12
+ # examples = [["Image1.png"], ["Image2.png"], ["Image3.png"]]
13
 
14
  def generate_captions(
15
  image,
 
82
  outputs=[
83
  gr.components.Textbox(label="Caption"),
84
  ],
85
+ # Set image examples to be displayed in the interface.
86
+ examples = [
87
+ ["Image1.png", 1, list(MODELS.keys())[1], 50, 1.0, 50, 1.0, 2.0, 2.0]
88
+ ["Image2.png", 1, list(MODELS.keys())[1], 50, 1.0, 50, 1.0, 2.0, 2.0],
89
+ ["Image3.png", 1, list(MODELS.keys())[1], 50, 1.0, 50, 1.0, 2.0, 2.0],
90
+ ],
91
  title=title,
92
  description=description,
93
  allow_flagging="never",