Update app.py
Browse files
app.py
CHANGED
|
@@ -118,13 +118,22 @@ def crop(img: Image) -> Image:
|
|
| 118 |
with tempfile.TemporaryDirectory() as tmpdir:
|
| 119 |
with gr.Blocks(
|
| 120 |
title='StereoGen Demo',
|
| 121 |
-
css=
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 122 |
) as demo:
|
| 123 |
# Internal states.
|
| 124 |
src_image = gr.State()
|
| 125 |
src_depth = gr.State()
|
| 126 |
-
proj_mtx = gr.State()
|
| 127 |
-
src_view_mtx = gr.State()
|
| 128 |
|
| 129 |
# Blocks.
|
| 130 |
gr.Markdown(
|
|
|
|
| 118 |
with tempfile.TemporaryDirectory() as tmpdir:
|
| 119 |
with gr.Blocks(
|
| 120 |
title='StereoGen Demo',
|
| 121 |
+
css="""
|
| 122 |
+
.badge-container {
|
| 123 |
+
display: flex;
|
| 124 |
+
gap: 8px;
|
| 125 |
+
flex-wrap: wrap;
|
| 126 |
+
margin: 1em 0;
|
| 127 |
+
}
|
| 128 |
+
.badge-container img {
|
| 129 |
+
height: 28px;
|
| 130 |
+
display: inline-block;
|
| 131 |
+
}
|
| 132 |
+
"""
|
| 133 |
) as demo:
|
| 134 |
# Internal states.
|
| 135 |
src_image = gr.State()
|
| 136 |
src_depth = gr.State()
|
|
|
|
|
|
|
| 137 |
|
| 138 |
# Blocks.
|
| 139 |
gr.Markdown(
|