Spaces:
Running
Running
Commit
·
aa1739e
1
Parent(s):
5f26eb1
Update: font styling
Browse files
app.py
CHANGED
@@ -47,32 +47,50 @@ def process_image(sample_choice, uploaded_image, yolo_versions=["yolov5"]):
|
|
47 |
return result_images
|
48 |
|
49 |
with gr.Blocks() as interface:
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
#
|
68 |
-
#
|
69 |
-
#
|
70 |
-
#
|
71 |
-
#
|
72 |
-
#
|
73 |
-
#
|
74 |
-
#
|
75 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
|
77 |
gr.Markdown("<h1 style='color: #FFFFFF;'>XAI: Visualize Object Detection of Your Models</h1>")
|
78 |
gr.Markdown("<p style='color: #FFFFFF;'>Select a sample image to visualize object detection.</p>")
|
|
|
47 |
return result_images
|
48 |
|
49 |
with gr.Blocks() as interface:
|
50 |
+
# Update CSS to make text light grey
|
51 |
+
gr.HTML("""
|
52 |
+
<style>
|
53 |
+
body {
|
54 |
+
background-color: black;
|
55 |
+
color: #D3D3D3; /* Set the default text color to light grey */
|
56 |
+
}
|
57 |
+
.gr-button {
|
58 |
+
background-color: #007bff; /* Optional: Change button background color */
|
59 |
+
color: #D3D3D3; /* Ensure button text is light grey */
|
60 |
+
}
|
61 |
+
.gr-button:hover {
|
62 |
+
background-color: #0056b3; /* Optional: Change button hover color */
|
63 |
+
}
|
64 |
+
</style>
|
65 |
+
""")
|
66 |
+
|
67 |
+
# with gr.Blocks() as interface:
|
68 |
+
# # Update CSS to make text light grey
|
69 |
+
# gr.HTML("""
|
70 |
+
# <style>
|
71 |
+
# body {
|
72 |
+
# background-color: black;
|
73 |
+
# color: #D3D3D3; /* Set the default text color to light grey */
|
74 |
+
# }
|
75 |
+
# .gradio-container {
|
76 |
+
# color: #D3D3D3; /* Ensure Gradio components also have light grey text */
|
77 |
+
# }
|
78 |
+
# h1, h2, h3, h4, h5, h6, p, label {
|
79 |
+
# color: #FFFFFF; /* Make all headings and labels light grey */
|
80 |
+
# }
|
81 |
+
# .gr-markdown {
|
82 |
+
# color: #FFFFFF; /* Ensure Markdown text is light grey */
|
83 |
+
# }
|
84 |
+
# .gr-button {
|
85 |
+
# background-color: #007bff; /* Optional: Change button background color */
|
86 |
+
# color: #D3D3D3; /* Ensure button text is light grey */
|
87 |
+
# }
|
88 |
+
# .gr-button:hover {
|
89 |
+
# background-color: #0056b3; /* Optional: Change button hover color */
|
90 |
+
# }
|
91 |
+
# </style>
|
92 |
+
# """)
|
93 |
+
|
94 |
|
95 |
gr.Markdown("<h1 style='color: #FFFFFF;'>XAI: Visualize Object Detection of Your Models</h1>")
|
96 |
gr.Markdown("<p style='color: #FFFFFF;'>Select a sample image to visualize object detection.</p>")
|