Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,12 +28,13 @@ iface = gr.Interface(
|
|
| 28 |
example_images = gr.Markdown(
|
| 29 |
"""
|
| 30 |
## Example input
|
| 31 |
-
Here are
|
| 32 |
"""
|
| 33 |
)
|
| 34 |
|
| 35 |
-
example_image1 = gr.Image(value='rs01313.jpg', type='numpy', label="Example Image 1", width=
|
| 36 |
-
example_image2 = gr.Image(value='rs00042.jpg', type='numpy', label="Example Image 2", width=
|
|
|
|
| 37 |
|
| 38 |
# Combine the interface and example images
|
| 39 |
app = gr.Blocks()
|
|
@@ -44,6 +45,7 @@ with app:
|
|
| 44 |
with gr.Row():
|
| 45 |
example_image1.render()
|
| 46 |
example_image2.render()
|
|
|
|
| 47 |
|
| 48 |
# Launch the interface
|
| 49 |
if __name__ == "__main__":
|
|
|
|
| 28 |
example_images = gr.Markdown(
|
| 29 |
"""
|
| 30 |
## Example input
|
| 31 |
+
Here are three example images that you can use:
|
| 32 |
"""
|
| 33 |
)
|
| 34 |
|
| 35 |
+
example_image1 = gr.Image(value='rs01313.jpg', type='numpy', label="Example Image 1", width=420, height=280)
|
| 36 |
+
example_image2 = gr.Image(value='rs00042.jpg', type='numpy', label="Example Image 2", width=420, height=280)
|
| 37 |
+
example_image3 = gr.Image(value='frame_0474.jpg', type='numpy', label="Example Image 3", width=420, height=280)
|
| 38 |
|
| 39 |
# Combine the interface and example images
|
| 40 |
app = gr.Blocks()
|
|
|
|
| 45 |
with gr.Row():
|
| 46 |
example_image1.render()
|
| 47 |
example_image2.render()
|
| 48 |
+
example_image3.render()
|
| 49 |
|
| 50 |
# Launch the interface
|
| 51 |
if __name__ == "__main__":
|