Update app.py
Browse filesfix example syntax
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",
|