baconnier commited on
Commit
728617c
1 Parent(s): d920317

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -12
app.py CHANGED
@@ -103,21 +103,21 @@ class GradioInterface:
103
  self.prompt_refiner = prompt_refiner
104
  custom_css = """
105
  .container {
106
- border: 2px solid #4CAF50; /* Changed from #2196F3 to green */
107
  border-radius: 10px;
108
- padding: 20px;
109
- margin: 15px;
110
  background: white;
111
  position: relative;
112
  }
113
 
114
  .container::before {
115
  position: absolute;
116
- top: -12px;
117
  left: 20px;
118
  background: white;
119
  padding: 0 10px;
120
- color: #4CAF50; /* Changed from #2196F3 to green */
121
  font-weight: bold;
122
  font-size: 1.2em;
123
  }
@@ -137,16 +137,13 @@ class GradioInterface:
137
 
138
  .radio-group {
139
  display: flex;
140
- gap: 10px;
141
- margin: 10px 0;
142
  }
143
 
144
- /* Remove any unwanted borders */
145
- .gradio-container input:focus,
146
- .gradio-container textarea:focus,
147
- .gradio-container select:focus {
148
  outline: none !important;
149
- border: none !important;
150
  box-shadow: none !important;
151
  }
152
  """
 
103
  self.prompt_refiner = prompt_refiner
104
  custom_css = """
105
  .container {
106
+ border: 2px solid #2196F3; /* Back to blue */
107
  border-radius: 10px;
108
+ padding: 12px; /* Reduced from 20px */
109
+ margin: 6px; /* Reduced from 15px */
110
  background: white;
111
  position: relative;
112
  }
113
 
114
  .container::before {
115
  position: absolute;
116
+ top: -10px;
117
  left: 20px;
118
  background: white;
119
  padding: 0 10px;
120
+ color: #2196F3; /* Back to blue */
121
  font-weight: bold;
122
  font-size: 1.2em;
123
  }
 
137
 
138
  .radio-group {
139
  display: flex;
140
+ gap: 8px;
141
+ margin: 6px 0;
142
  }
143
 
144
+ /* Remove focus outlines */
145
+ *:focus {
 
 
146
  outline: none !important;
 
147
  box-shadow: none !important;
148
  }
149
  """