Spaces:
Sleeping
Sleeping
Daniel Cerda Escobar
commited on
Commit
·
0b13976
1
Parent(s):
e46600b
Update app file
Browse files
app.py
CHANGED
@@ -154,18 +154,18 @@ if submit:
|
|
154 |
|
155 |
st.write('##')
|
156 |
|
157 |
-
|
158 |
-
|
159 |
-
st.markdown(f"#### Object Detection Result")
|
160 |
-
with st.container(border = True):
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
|
|
154 |
|
155 |
st.write('##')
|
156 |
|
157 |
+
col1, col2, col3 = st.columns([1, 4, 1])
|
158 |
+
with col2:
|
159 |
+
st.markdown(f"#### Object Detection Result")
|
160 |
+
with st.container(border = True):
|
161 |
+
static_component = image_comparison(
|
162 |
+
img1=st.session_state["output_1"],
|
163 |
+
img2=st.session_state["output_2"],
|
164 |
+
label1='Uploaded Diagram',
|
165 |
+
label2='Model Inference',
|
166 |
+
width=842,
|
167 |
+
starting_position=50,
|
168 |
+
show_labels=True,
|
169 |
+
make_responsive=True,
|
170 |
+
in_memory=True,
|
171 |
+
)
|