BhumikaMak commited on
Commit
aa1739e
·
1 Parent(s): 5f26eb1

Update: font styling

Browse files
Files changed (1) hide show
  1. app.py +44 -26
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
- pass
51
- # # Update CSS to make text light grey
52
- # gr.HTML("""
53
- # <style>
54
- # body {
55
- # background-color: black;
56
- # color: #D3D3D3; /* Set the default text color to light grey */
57
- # }
58
- # .gradio-container {
59
- # color: #D3D3D3; /* Ensure Gradio components also have light grey text */
60
- # }
61
- # h1, h2, h3, h4, h5, h6, p, label {
62
- # color: #FFFFFF; /* Make all headings and labels light grey */
63
- # }
64
- # .gr-markdown {
65
- # color: #FFFFFF; /* Ensure Markdown text is light grey */
66
- # }
67
- # .gr-button {
68
- # background-color: #007bff; /* Optional: Change button background color */
69
- # color: #D3D3D3; /* Ensure button text is light grey */
70
- # }
71
- # .gr-button:hover {
72
- # background-color: #0056b3; /* Optional: Change button hover color */
73
- # }
74
- # </style>
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>")