baconnier commited on
Commit
67ce09a
1 Parent(s): 10b7857

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -4
app.py CHANGED
@@ -138,15 +138,32 @@ class GradioInterface:
138
  .title-container {
139
  width: fit-content !important;
140
  margin: 0 auto !important;
141
- padding: 10px 40px !important; /* Reduced vertical padding from 20px to 10px */
142
  border: 1px solid #0066cc !important;
143
  border-radius: 10px !important;
144
- background-color: rgba(0, 102, 204, 0.25) !important; /* Darker blue with 25% opacity */
145
  }
146
 
147
  .title-container * {
148
  text-align: center;
149
- margin: 3px 0 !important; /* Reduced margin between text elements */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
150
  }
151
  /* Fix radio button visibility */
152
  .gradio-radio {
@@ -238,7 +255,7 @@ input[type="radio"]:checked::after {
238
  prompt_text = gr.Textbox(
239
  label="Type your prompt (or let it empty to see metaprompt)",
240
  elem_classes="no-background",
241
- lines=8
242
  )
243
  meta_prompt_choice = gr.Radio(
244
  ["star","done","physics","morphosis", "verse", "phor","bolism","math","arpe"],
 
138
  .title-container {
139
  width: fit-content !important;
140
  margin: 0 auto !important;
141
+ padding: 5px 40px !important; /* Reduced vertical padding to 5px */
142
  border: 1px solid #0066cc !important;
143
  border-radius: 10px !important;
144
+ background-color: rgba(0, 102, 204, 0.25) !important;
145
  }
146
 
147
  .title-container * {
148
  text-align: center;
149
+ margin: 2px 0 !important; /* Reduced margin between elements to 2px */
150
+ line-height: 1.2 !important; /* Reduced line height */
151
+ }
152
+
153
+ /* Specific adjustments for each heading level */
154
+ .title-container h1 {
155
+ margin-bottom: 2px !important;
156
+ font-size: 24px !important;
157
+ }
158
+
159
+ .title-container h3 {
160
+ margin: 2px 0 !important;
161
+ font-size: 16px !important;
162
+ }
163
+
164
+ .title-container p {
165
+ margin: 2px 0 !important;
166
+ font-size: 14px !important;
167
  }
168
  /* Fix radio button visibility */
169
  .gradio-radio {
 
255
  prompt_text = gr.Textbox(
256
  label="Type your prompt (or let it empty to see metaprompt)",
257
  elem_classes="no-background",
258
+ lines=5
259
  )
260
  meta_prompt_choice = gr.Radio(
261
  ["star","done","physics","morphosis", "verse", "phor","bolism","math","arpe"],