Spaces:
Runtime error
Runtime error
Commit
·
34c6949
1
Parent(s):
171a7e1
updated examples loading
Browse files
app.py
CHANGED
|
@@ -6,6 +6,16 @@ inputs_list = []
|
|
| 6 |
|
| 7 |
|
| 8 |
demo = gr.Blocks()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
with demo:
|
| 11 |
|
|
|
|
| 6 |
|
| 7 |
|
| 8 |
demo = gr.Blocks()
|
| 9 |
+
|
| 10 |
+
# sample_1 = ['examples/ship.png']
|
| 11 |
+
# sample_2 = ['examples/deer.jpg']
|
| 12 |
+
# sample_image = gr.Image(type='filepath')
|
| 13 |
+
# examples = gr.components.Dataset(components=[sample_image], samples=[sample_1, sample_2], type='values')
|
| 14 |
+
# with gr.Column():
|
| 15 |
+
# examples.render()
|
| 16 |
+
# examples.click(load_example, examples, input_images)
|
| 17 |
+
# def load_example(image):
|
| 18 |
+
# return image[0]
|
| 19 |
|
| 20 |
with demo:
|
| 21 |
|