Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -122,30 +122,44 @@ class GradioInterface:
|
|
| 122 |
font-size: 1.2em;
|
| 123 |
}
|
| 124 |
|
| 125 |
-
/*
|
| 126 |
-
.gradio-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 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 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
border:
|
| 145 |
-
|
| 146 |
-
|
| 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 |
-
/*
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
|