kfahn commited on
Commit
88a8a9f
1 Parent(s): c98a13e

Update app.py

Browse files

fix example syntax

Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -67,7 +67,13 @@ gr.Examples(
67
  #["a yellow dog standing on a lawn"],
68
  ["a tortoiseshell cat is sitting on a cushion", "https://huggingface.co/JFoz/dog-cat-pose/blob/main/images_0.png"],
69
  ["a yellow dog standing on a lawn", "https://huggingface.co/JFoz/dog-cat-pose/blob/main/images_1.png"],
70
- ]
 
 
 
 
 
 
71
  )
72
 
73
  gr.Interface(fn = infer, inputs = ["text", "text", "image"], outputs = "image",
 
67
  #["a yellow dog standing on a lawn"],
68
  ["a tortoiseshell cat is sitting on a cushion", "https://huggingface.co/JFoz/dog-cat-pose/blob/main/images_0.png"],
69
  ["a yellow dog standing on a lawn", "https://huggingface.co/JFoz/dog-cat-pose/blob/main/images_1.png"],
70
+ ],
71
+ inputs=[
72
+ prompt, image
73
+ ],
74
+ outputs=output,
75
+ fn=infer,
76
+ cache_examples=True,
77
  )
78
 
79
  gr.Interface(fn = infer, inputs = ["text", "text", "image"], outputs = "image",