Spaces:
Running
Running
Commit
·
24c3cc8
1
Parent(s):
ebf25c1
feat: added examples
Browse files- gradio_demo.py +9 -0
gradio_demo.py
CHANGED
@@ -100,6 +100,15 @@ with gr.Blocks() as demo:
|
|
100 |
outputs=[instruction]
|
101 |
)
|
102 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
if __name__ == "__main__":
|
104 |
demo.launch()
|
105 |
|
|
|
100 |
outputs=[instruction]
|
101 |
)
|
102 |
|
103 |
+
examples = gr.Examples(
|
104 |
+
examples=[
|
105 |
+
["https://i.ibb.co/qYwhcc6j/c837c212afbf.jpg", "remove the pole"],
|
106 |
+
["https://i.ibb.co/2Mrxztw/image.png", "replace the cat with a dog"],
|
107 |
+
["https://i.ibb.co/9mT4cvnt/resized-78-B40-C09-1037-4-DD3-9-F48-D73637-EE4-E51.png", "ENHANCE!"]
|
108 |
+
],
|
109 |
+
inputs=[input_image, instruction]
|
110 |
+
)
|
111 |
+
|
112 |
if __name__ == "__main__":
|
113 |
demo.launch()
|
114 |
|