BhumikaMak commited on
Commit
155613f
·
1 Parent(s): aa1739e

Update: font styling

Browse files
Files changed (1) hide show
  1. app.py +12 -3
app.py CHANGED
@@ -47,16 +47,25 @@ def process_image(sample_choice, uploaded_image, yolo_versions=["yolov5"]):
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 */
 
47
  return result_images
48
 
49
  with gr.Blocks() as interface:
50
+ # Update CSS to make text white and set dark mode
51
  gr.HTML("""
52
  <style>
53
  body {
54
  background-color: black;
55
+ color: #FFFFFF; /* Set the default text color to white */
56
+ }
57
+ .gradio-container {
58
+ color: #FFFFFF; /* Ensure Gradio components also have white text */
59
+ }
60
+ h1, h2, h3, h4, h5, h6, p, label {
61
+ color: #FFFFFF !important; /* Force all headings, paragraphs, and labels to white */
62
+ }
63
+ .gr-markdown {
64
+ color: #FFFFFF !important; /* Ensure Markdown text is white */
65
  }
66
  .gr-button {
67
  background-color: #007bff; /* Optional: Change button background color */
68
+ color: #FFFFFF; /* Ensure button text is white */
69
  }
70
  .gr-button:hover {
71
  background-color: #0056b3; /* Optional: Change button hover color */