Poonawala commited on
Commit
654977a
·
verified ·
1 Parent(s): 9eeeaa6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +37 -12
app.py CHANGED
@@ -43,24 +43,49 @@ def respond(
43
  # CSS for styling the interface
44
  css = """
45
  body {
46
- background-color: #06688E; /* Dark background */
47
- color: white; /* Text color for better visibility */
 
48
  }
49
-
50
  .gr-button {
51
- background-color: #42B3CE !important; /* White button color */
52
- color: black !important; /* Black text for contrast */
53
  border: none !important;
54
- padding: 8px 16px !important;
55
- border-radius: 5px !important;
 
 
 
56
  }
57
-
58
  .gr-button:hover {
59
- background-color: #e0e0e0 !important; /* Slightly lighter button on hover */
 
 
 
 
60
  }
61
-
62
  .gr-slider-container {
63
- color: white !important; /* Slider labels in white */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
64
  }
65
  """
66
 
@@ -78,7 +103,7 @@ demo = gr.ChatInterface(
78
  maximum=1.0,
79
  value=0.95,
80
  step=0.05,
81
- label="Top-p (nucleus sampling)",visible=False
82
  ),
83
  ],
84
  css=css, # Pass the custom CSS here
 
43
  # CSS for styling the interface
44
  css = """
45
  body {
46
+ background-color: #1e2a38; /* Dark blue background */
47
+ color: #ffffff; /* White text for readability */
48
+ font-family: 'Arial', sans-serif; /* Clean and modern font */
49
  }
 
50
  .gr-button {
51
+ background-color: #42B3CE !important; /* Light blue button */
52
+ color: #2e3b4e !important; /* Dark text for contrast */
53
  border: none !important;
54
+ padding: 10px 20px !important;
55
+ border-radius: 8px !important;
56
+ font-size: 16px;
57
+ font-weight: bold;
58
+ transition: background-color 0.3s ease, transform 0.2s ease;
59
  }
 
60
  .gr-button:hover {
61
+ background-color: #3189A2 !important; /* Darker blue on hover */
62
+ transform: scale(1.05);
63
+ }
64
+ .gr-button:active {
65
+ background-color: #267b88 !important; /* Even darker when clicked */
66
  }
 
67
  .gr-slider-container {
68
+ color: white !important; /* White slider labels */
69
+ font-size: 14px;
70
+ }
71
+ .gr-slider {
72
+ background-color: #0b2545 !important; /* Slider track color */
73
+ border-radius: 8px;
74
+ }
75
+ .gr-slider .gr-slider-active {
76
+ background-color: #42B3CE !important; /* Active slider color */
77
+ }
78
+ .gr-textbox input {
79
+ background-color: #2f3b4d;
80
+ color: white;
81
+ border: 2px solid #42B3CE;
82
+ padding: 12px;
83
+ border-radius: 8px;
84
+ font-size: 16px;
85
+ transition: border 0.3s ease;
86
+ }
87
+ .gr-textbox input:focus {
88
+ border-color: #3189A2;
89
  }
90
  """
91
 
 
103
  maximum=1.0,
104
  value=0.95,
105
  step=0.05,
106
+ label="Top-p (nucleus sampling)", visible=False
107
  ),
108
  ],
109
  css=css, # Pass the custom CSS here