Spaces:
Sleeping
Sleeping
Commit
·
423ae28
1
Parent(s):
5a16208
Update: font styling
Browse files
app.py
CHANGED
@@ -46,32 +46,32 @@ def process_image(sample_choice, uploaded_image, yolo_versions=["yolov5"]):
|
|
46 |
result_images.append((Image.fromarray(image), f"{yolo_version} not yet implemented."))
|
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 |
gr.Markdown("<h1 style='color: #FFFFFF;'>XAI: Visualize Object Detection of Your Models</h1>")
|
77 |
gr.Markdown("<p style='color: #FFFFFF;'>Select a sample image to visualize object detection.</p>")
|
|
|
46 |
result_images.append((Image.fromarray(image), f"{yolo_version} not yet implemented."))
|
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 |
+
# .gradio-container {
|
58 |
+
# color: #D3D3D3; /* Ensure Gradio components also have light grey text */
|
59 |
+
# }
|
60 |
+
# h1, h2, h3, h4, h5, h6, p, label {
|
61 |
+
# color: #FFFFFF; /* Make all headings and labels light grey */
|
62 |
+
# }
|
63 |
+
# .gr-markdown {
|
64 |
+
# color: #FFFFFF; /* Ensure Markdown text is light grey */
|
65 |
+
# }
|
66 |
+
# .gr-button {
|
67 |
+
# background-color: #007bff; /* Optional: Change button background color */
|
68 |
+
# color: #D3D3D3; /* Ensure button text is light grey */
|
69 |
+
# }
|
70 |
+
# .gr-button:hover {
|
71 |
+
# background-color: #0056b3; /* Optional: Change button hover color */
|
72 |
+
# }
|
73 |
+
# </style>
|
74 |
+
# """)
|
75 |
|
76 |
gr.Markdown("<h1 style='color: #FFFFFF;'>XAI: Visualize Object Detection of Your Models</h1>")
|
77 |
gr.Markdown("<p style='color: #FFFFFF;'>Select a sample image to visualize object detection.</p>")
|