Spaces:
Runtime error
Runtime error
Add examples
Browse files
app.py
CHANGED
@@ -183,5 +183,17 @@ with gr.Blocks() as demo:
|
|
183 |
outputs=output_images,
|
184 |
)
|
185 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
186 |
if __name__ == "__main__":
|
187 |
demo.launch(share=True)
|
|
|
183 |
outputs=output_images,
|
184 |
)
|
185 |
|
186 |
+
# Add examples
|
187 |
+
gr.Examples(
|
188 |
+
examples=[
|
189 |
+
["swimming pool", 27, 7],
|
190 |
+
["swimming pool", 255, 7],
|
191 |
+
["dining room", 22, 7],
|
192 |
+
["dining room", 5, 7],
|
193 |
+
["dining room", 5, 46]
|
194 |
+
],
|
195 |
+
inputs=[caption, brightness, num_items]
|
196 |
+
)
|
197 |
+
|
198 |
if __name__ == "__main__":
|
199 |
demo.launch(share=True)
|