Spaces:
Sleeping
Sleeping
Commit
·
b5b56dc
1
Parent(s):
f46ba16
Update: interface update
Browse files
app.py
CHANGED
@@ -50,6 +50,17 @@ with gr.Blocks() as interface:
|
|
50 |
gr.Markdown("# XAI: Visualize Object Detection of Your Models")
|
51 |
gr.Markdown("Select a sample image to visualize object detection.")
|
52 |
default_sample = "Sample 1"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
with gr.Row(elem_classes="orchid-green-bg"):
|
54 |
# Left side: Sample selection and upload image
|
55 |
with gr.Column():
|
@@ -90,10 +101,5 @@ with gr.Blocks() as interface:
|
|
90 |
outputs=result_gallery,
|
91 |
)
|
92 |
|
93 |
-
css
|
94 |
-
|
95 |
-
background-color: black;
|
96 |
-
color: white;
|
97 |
-
}
|
98 |
-
"""
|
99 |
-
interface.launch(share=True, css=css)
|
|
|
50 |
gr.Markdown("# XAI: Visualize Object Detection of Your Models")
|
51 |
gr.Markdown("Select a sample image to visualize object detection.")
|
52 |
default_sample = "Sample 1"
|
53 |
+
|
54 |
+
# Inject CSS with gr.HTML
|
55 |
+
gr.HTML("""
|
56 |
+
<style>
|
57 |
+
body {
|
58 |
+
background-color: black;
|
59 |
+
color: white;
|
60 |
+
}
|
61 |
+
</style>
|
62 |
+
""")
|
63 |
+
|
64 |
with gr.Row(elem_classes="orchid-green-bg"):
|
65 |
# Left side: Sample selection and upload image
|
66 |
with gr.Column():
|
|
|
101 |
outputs=result_gallery,
|
102 |
)
|
103 |
|
104 |
+
# Launch the interface without the `css` argument
|
105 |
+
interface.launch(share=True)
|
|
|
|
|
|
|
|
|
|