Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -106,47 +106,36 @@ class GradioInterface:
|
|
| 106 |
|
| 107 |
# Define custom CSS for containers
|
| 108 |
custom_css = """
|
| 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 |
-
.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
|