Spaces:
Sleeping
Sleeping
update custom css
Browse files
app.py
CHANGED
@@ -68,13 +68,15 @@ custom_css = """
|
|
68 |
border-radius: 5px;
|
69 |
font-size: 14px;
|
70 |
}
|
71 |
-
.custom-
|
72 |
-
margin: 0 !important;
|
73 |
-
padding: 0 !important;
|
74 |
-
height: fit-content;
|
|
|
|
|
75 |
}
|
76 |
-
"""
|
77 |
|
|
|
78 |
|
79 |
with gr.Blocks(css=custom_css) as interface:
|
80 |
gr.Markdown("# NeuralVista: Visualize Object Detection of Your Models")
|
@@ -111,7 +113,7 @@ with gr.Blocks(css=custom_css) as interface:
|
|
111 |
)
|
112 |
|
113 |
# Results and visualization
|
114 |
-
with gr.Row():
|
115 |
result_gallery = gr.Gallery(
|
116 |
label="Results",
|
117 |
rows=1,
|
@@ -128,7 +130,7 @@ with gr.Blocks(css=custom_css) as interface:
|
|
128 |
inputs=sample_selection,
|
129 |
outputs=sample_display,
|
130 |
)
|
131 |
-
with gr.Row():
|
132 |
dff_gallery = gr.Gallery(
|
133 |
label="Deep Feature Factorization",
|
134 |
rows=1,
|
|
|
68 |
border-radius: 5px;
|
69 |
font-size: 14px;
|
70 |
}
|
71 |
+
.custom-row {
|
72 |
+
margin: 0 !important; /* Remove any extra margins */
|
73 |
+
padding: 0 !important; /* Remove any extra padding */
|
74 |
+
height: fit-content !important; /* Adjust height to content */
|
75 |
+
display: flex;
|
76 |
+
justify-content: center; /* Center-align contents */
|
77 |
}
|
|
|
78 |
|
79 |
+
"""
|
80 |
|
81 |
with gr.Blocks(css=custom_css) as interface:
|
82 |
gr.Markdown("# NeuralVista: Visualize Object Detection of Your Models")
|
|
|
113 |
)
|
114 |
|
115 |
# Results and visualization
|
116 |
+
with gr.Row(elem_classes="custom-row"):
|
117 |
result_gallery = gr.Gallery(
|
118 |
label="Results",
|
119 |
rows=1,
|
|
|
130 |
inputs=sample_selection,
|
131 |
outputs=sample_display,
|
132 |
)
|
133 |
+
with gr.Row(elem_classes="custom-row"):
|
134 |
dff_gallery = gr.Gallery(
|
135 |
label="Deep Feature Factorization",
|
136 |
rows=1,
|