Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -102,72 +102,66 @@ class GradioInterface:
|
|
| 102 |
def __init__(self, prompt_refiner: PromptRefiner):
|
| 103 |
self.prompt_refiner = prompt_refiner
|
| 104 |
custom_css = """
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
}
|
| 166 |
-
|
| 167 |
-
/* Reduce accordion spacing */
|
| 168 |
-
.gr-accordion {
|
| 169 |
-
margin: 0.3rem 0 !important;
|
| 170 |
-
}
|
| 171 |
"""
|
| 172 |
|
| 173 |
with gr.Blocks(css=custom_css, theme=gr.themes.Default()) as self.interface:
|
|
|
|
| 102 |
def __init__(self, prompt_refiner: PromptRefiner):
|
| 103 |
self.prompt_refiner = prompt_refiner
|
| 104 |
custom_css = """
|
| 105 |
+
.container {
|
| 106 |
+
border: 2px solid #2196F3;
|
| 107 |
+
border-radius: 10px;
|
| 108 |
+
padding: 10px;
|
| 109 |
+
margin: 10px;
|
| 110 |
+
background: white;
|
| 111 |
+
position: relative;
|
| 112 |
+
}
|
| 113 |
+
|
| 114 |
+
.container::before {
|
| 115 |
+
position: absolute;
|
| 116 |
+
top: -10px;
|
| 117 |
+
left: 10px;
|
| 118 |
+
background: white;
|
| 119 |
+
padding: 0 10px;
|
| 120 |
+
color: #2196F3;
|
| 121 |
+
font-weight: bold;
|
| 122 |
+
font-size: 1.2em;
|
| 123 |
+
}
|
| 124 |
+
|
| 125 |
+
.no-background > div:first-child {
|
| 126 |
+
border: none !important;
|
| 127 |
+
background: transparent !important;
|
| 128 |
+
box-shadow: none !important;
|
| 129 |
+
}
|
| 130 |
+
|
| 131 |
+
.gradio-container {
|
| 132 |
+
gap: 0.5rem !important;
|
| 133 |
+
}
|
| 134 |
+
|
| 135 |
+
.markdown {
|
| 136 |
+
margin: 0.3em 0 !important;
|
| 137 |
+
}
|
| 138 |
+
|
| 139 |
+
.title-container::before { content: 'PROMPT++'; }
|
| 140 |
+
.input-container::before { content: 'PROMPT REFINEMENT'; }
|
| 141 |
+
.analysis-container::before { content: 'ANALYSIS & REFINEMENT'; }
|
| 142 |
+
.model-container::before { content: 'MODEL APPLICATION'; }
|
| 143 |
+
.results-container::before { content: 'RESULTS'; }
|
| 144 |
+
.examples-container::before { content: 'EXAMPLES'; }
|
| 145 |
+
|
| 146 |
+
.radio-group {
|
| 147 |
+
display: flex;
|
| 148 |
+
gap: 5px;
|
| 149 |
+
margin: 5px 0;
|
| 150 |
+
}
|
| 151 |
+
|
| 152 |
+
.gr-form > div {
|
| 153 |
+
gap: 0.5rem !important;
|
| 154 |
+
}
|
| 155 |
+
|
| 156 |
+
.gr-textbox {
|
| 157 |
+
padding: 0.3rem !important;
|
| 158 |
+
border: 2px solid #4CAF50 !important;
|
| 159 |
+
border-radius: 5px !important;
|
| 160 |
+
}
|
| 161 |
+
|
| 162 |
+
.gr-accordion {
|
| 163 |
+
margin: 0.3rem 0 !important;
|
| 164 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 165 |
"""
|
| 166 |
|
| 167 |
with gr.Blocks(css=custom_css, theme=gr.themes.Default()) as self.interface:
|