chats-bug commited on
Commit
dc53ac5
1 Parent(s): 76537bc

Fixed typo in examples

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -12,6 +12,7 @@ MODELS = {
12
  torch.hub.download_url_to_file("https://huggingface.co/datasets/chats-bug/test-image-caption-Listed/blob/main/Image1.png", "image1.png")
13
  torch.hub.download_url_to_file("https://huggingface.co/datasets/chats-bug/test-image-caption-Listed/blob/main/Image2.png", "image2.png")
14
  torch.hub.download_url_to_file("https://huggingface.co/datasets/chats-bug/test-image-caption-Listed/blob/main/Image3.png", "image3.png")
 
15
 
16
  def generate_captions(
17
  image,
@@ -84,7 +85,7 @@ interface = gr.Interface(
84
  outputs=[
85
  gr.components.Textbox(label="Caption"),
86
  ],
87
- example=[["image1.png"], ["image2.png"], ["image3.png"]],
88
  title=title,
89
  description=description,
90
  allow_flagging="never",
 
12
  torch.hub.download_url_to_file("https://huggingface.co/datasets/chats-bug/test-image-caption-Listed/blob/main/Image1.png", "image1.png")
13
  torch.hub.download_url_to_file("https://huggingface.co/datasets/chats-bug/test-image-caption-Listed/blob/main/Image2.png", "image2.png")
14
  torch.hub.download_url_to_file("https://huggingface.co/datasets/chats-bug/test-image-caption-Listed/blob/main/Image3.png", "image3.png")
15
+ examples = [["image1.png"], ["image2.png"], ["image3.png"]]
16
 
17
  def generate_captions(
18
  image,
 
85
  outputs=[
86
  gr.components.Textbox(label="Caption"),
87
  ],
88
+ examples=examples,
89
  title=title,
90
  description=description,
91
  allow_flagging="never",