Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -105,15 +105,15 @@ class GradioInterface:
|
|
105 |
.container {
|
106 |
border: 2px solid #2196F3;
|
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;
|
@@ -122,18 +122,24 @@ class GradioInterface:
|
|
122 |
font-size: 1.2em;
|
123 |
}
|
124 |
|
125 |
-
/* Remove
|
126 |
-
.
|
127 |
-
.gradio-container .gr-textbox,
|
128 |
-
.gradio-container .gr-text-input,
|
129 |
-
.gradio-container textarea,
|
130 |
-
.gradio-container select {
|
131 |
border: none !important;
|
132 |
-
box-shadow: none !important;
|
133 |
background: transparent !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
134 |
}
|
135 |
|
136 |
-
/*
|
137 |
.title-container::before { content: ''; }
|
138 |
.input-container::before { content: 'PROMPT REFINEMENT'; }
|
139 |
.analysis-container::before { content: 'ANALYSIS & REFINEMENT'; }
|
@@ -141,11 +147,26 @@ class GradioInterface:
|
|
141 |
.results-container::before { content: 'RESULTS'; }
|
142 |
.examples-container::before { content: 'EXAMPLES'; }
|
143 |
|
144 |
-
/* Radio group styling */
|
145 |
.radio-group {
|
146 |
display: flex;
|
147 |
-
gap: 10px
|
148 |
-
margin:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
149 |
}
|
150 |
"""
|
151 |
|
|
|
105 |
.container {
|
106 |
border: 2px solid #2196F3;
|
107 |
border-radius: 10px;
|
108 |
+
padding: 15px; /* Reduced from 20px */
|
109 |
+
margin: 10px; /* Reduced from 15px */
|
110 |
background: white;
|
111 |
position: relative;
|
112 |
}
|
113 |
|
114 |
.container::before {
|
115 |
position: absolute;
|
116 |
+
top: -10px; /* Reduced from -12px */
|
117 |
left: 20px;
|
118 |
background: white;
|
119 |
padding: 0 10px;
|
|
|
122 |
font-size: 1.2em;
|
123 |
}
|
124 |
|
125 |
+
/* Remove default Gradio styles */
|
126 |
+
.no-background > div:first-child {
|
|
|
|
|
|
|
|
|
127 |
border: none !important;
|
|
|
128 |
background: transparent !important;
|
129 |
+
box-shadow: none !important;
|
130 |
+
}
|
131 |
+
|
132 |
+
/* Reduce spacing between elements */
|
133 |
+
.gradio-container {
|
134 |
+
gap: 0.5rem !important; /* Reduced spacing between components */
|
135 |
+
}
|
136 |
+
|
137 |
+
/* Reduce margins for markdown elements */
|
138 |
+
.markdown {
|
139 |
+
margin: 0.3em 0 !important; /* Reduced top/bottom margins */
|
140 |
}
|
141 |
|
142 |
+
/* Container labels */
|
143 |
.title-container::before { content: ''; }
|
144 |
.input-container::before { content: 'PROMPT REFINEMENT'; }
|
145 |
.analysis-container::before { content: 'ANALYSIS & REFINEMENT'; }
|
|
|
147 |
.results-container::before { content: 'RESULTS'; }
|
148 |
.examples-container::before { content: 'EXAMPLES'; }
|
149 |
|
150 |
+
/* Radio group styling with reduced spacing */
|
151 |
.radio-group {
|
152 |
display: flex;
|
153 |
+
gap: 5px; /* Reduced from 10px */
|
154 |
+
margin: 5px 0; /* Reduced from 10px */
|
155 |
+
}
|
156 |
+
|
157 |
+
/* Reduce spacing in columns */
|
158 |
+
.gr-form > div {
|
159 |
+
gap: 0.5rem !important;
|
160 |
+
}
|
161 |
+
|
162 |
+
/* Reduce padding in textboxes */
|
163 |
+
.gr-textbox {
|
164 |
+
padding: 0.3rem !important;
|
165 |
+
}
|
166 |
+
|
167 |
+
/* Reduce accordion spacing */
|
168 |
+
.gr-accordion {
|
169 |
+
margin: 0.3rem 0 !important;
|
170 |
}
|
171 |
"""
|
172 |
|