baconnier commited on
Commit
e5b6eb7
1 Parent(s): ace67cc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +30 -41
app.py CHANGED
@@ -106,47 +106,36 @@ class GradioInterface:
106
 
107
  # Define custom CSS for containers
108
  custom_css = """
109
- .container {
110
- border: 2px solid #2196F3;
111
- border-radius: 10px;
112
- padding: 20px;
113
- margin: 15px;
114
- background: white;
115
- position: relative;
116
- }
117
-
118
- .container::before {
119
- position: absolute;
120
- top: -12px;
121
- left: 20px;
122
- background: white;
123
- padding: 0 10px;
124
- color: #2196F3;
125
- font-weight: bold;
126
- font-size: 1.2em;
127
- }
128
-
129
- /* Remove default Gradio styles */
130
- .no-background > div:first-child {
131
- border: none !important;
132
- background: transparent !important;
133
- box-shadow: none !important;
134
- }
135
-
136
- .title-container::before { content: ''; }
137
- .input-container::before { content: 'PROMPT REFINEMENT'; }
138
- .analysis-container::before { content: 'ANALYSIS & REFINEMENT'; }
139
- .model-container::before { content: 'MODEL APPLICATION'; }
140
- .results-container::before { content: 'RESULTS'; }
141
- .examples-container::before { content: 'EXAMPLES'; }
142
-
143
- /* Custom styling for radio buttons */
144
- .radio-group {
145
- display: flex;
146
- gap: 10px;
147
- margin: 10px 0;
148
- }
149
- """
150
 
151
  with gr.Blocks(css=custom_css, theme=gr.themes.Default()) as self.interface:
152
  # Title Container
 
106
 
107
  # Define custom CSS for containers
108
  custom_css = """
109
+ .container {
110
+ border: 2px solid #2196F3;
111
+ border-radius: 10px;
112
+ padding: 20px;
113
+ margin: 15px;
114
+ background: white;
115
+ position: relative;
116
+ }
117
+
118
+ /* Remove Gradio's default container styling */
119
+ .gradio-container {
120
+ background: none !important;
121
+ border: none !important;
122
+ box-shadow: none !important;
123
+ }
124
+
125
+ /* Remove default input container styling */
126
+ .input-container > div:first-child {
127
+ border: none !important;
128
+ background: none !important;
129
+ box-shadow: none !important;
130
+ }
131
+
132
+ /* Keep textbox styling but remove container */
133
+ .textbox {
134
+ border: 1px solid #ddd !important;
135
+ background: white !important;
136
+ box-shadow: none !important;
137
+ }
138
+ """
 
 
 
 
 
 
 
 
 
 
 
139
 
140
  with gr.Blocks(css=custom_css, theme=gr.themes.Default()) as self.interface:
141
  # Title Container