baconnier commited on
Commit
d18c0fc
1 Parent(s): 3662e5c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +47 -23
app.py CHANGED
@@ -122,30 +122,44 @@ class GradioInterface:
122
  font-size: 1.2em;
123
  }
124
 
125
- /* Add light gray border to input fields */
126
- .gradio-container input,
127
- .gradio-container textarea,
128
- .gradio-container select,
129
- .gradio-container .gr-box,
130
- .gradio-container .gr-input,
131
- .gradio-container .gr-text-input {
132
- border: 1px solid #ddd !important;
133
- background: white !important;
134
- border-radius: 4px !important;
135
  padding: 8px !important;
 
136
  }
137
 
138
- /* Style radio buttons container */
139
- .radio-group {
140
- display: flex;
141
- gap: 8px;
142
- margin: 6px 0;
143
- padding: 8px;
144
- border: 1px solid #ddd;
145
- border-radius: 4px;
146
- background: white;
147
  }
148
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
149
  .title-container::before { content: ''; }
150
  .input-container::before { content: 'PROMPT REFINEMENT'; }
151
  .analysis-container::before { content: 'ANALYSIS & REFINEMENT'; }
@@ -153,10 +167,20 @@ class GradioInterface:
153
  .results-container::before { content: 'RESULTS'; }
154
  .examples-container::before { content: 'EXAMPLES'; }
155
 
156
- /* Remove focus outlines but keep borders */
157
- *:focus {
158
- outline: none !important;
159
- border-color: #2196F3 !important;
 
 
 
 
 
 
 
 
 
 
160
  }
161
  """
162
 
 
122
  font-size: 1.2em;
123
  }
124
 
125
+ /* Style radio buttons */
126
+ .gradio-radio {
127
+ display: flex !important;
128
+ gap: 8px !important;
129
+ background: #f5f5f5 !important;
 
 
 
 
 
130
  padding: 8px !important;
131
+ border-radius: 4px !important;
132
  }
133
 
134
+ .gradio-radio input[type="radio"] {
135
+ appearance: none !important;
136
+ -webkit-appearance: none !important;
137
+ width: 16px !important;
138
+ height: 16px !important;
139
+ border: 2px solid #ddd !important;
140
+ border-radius: 50% !important;
141
+ margin: 0 !important;
142
+ position: relative !important;
143
  }
144
 
145
+ .gradio-radio input[type="radio"]:checked {
146
+ border-color: #2196F3 !important;
147
+ background: #2196F3 !important;
148
+ }
149
+
150
+ .gradio-radio input[type="radio"]:checked::after {
151
+ content: '' !important;
152
+ width: 8px !important;
153
+ height: 8px !important;
154
+ background: white !important;
155
+ border-radius: 50% !important;
156
+ position: absolute !important;
157
+ top: 50% !important;
158
+ left: 50% !important;
159
+ transform: translate(-50%, -50%) !important;
160
+ }
161
+
162
+ /* Container labels */
163
  .title-container::before { content: ''; }
164
  .input-container::before { content: 'PROMPT REFINEMENT'; }
165
  .analysis-container::before { content: 'ANALYSIS & REFINEMENT'; }
 
167
  .results-container::before { content: 'RESULTS'; }
168
  .examples-container::before { content: 'EXAMPLES'; }
169
 
170
+ /* Radio group styling */
171
+ .radio-group {
172
+ display: flex;
173
+ gap: 8px;
174
+ margin: 6px 0;
175
+ }
176
+
177
+ /* Remove default gradio container styles but keep input borders */
178
+ .gradio-container input,
179
+ .gradio-container textarea,
180
+ .gradio-container select {
181
+ border: 1px solid #ddd !important;
182
+ background: white !important;
183
+ border-radius: 4px !important;
184
  }
185
  """
186