Spaces:
Running
Running
neerajkalyank
commited on
Commit
•
ba65c13
1
Parent(s):
bdd3242
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,3 @@
|
|
1 |
-
# app.py
|
2 |
-
|
3 |
import gradio as gr
|
4 |
import json
|
5 |
from datetime import datetime
|
@@ -86,7 +84,7 @@ def billing_interface(patient_id):
|
|
86 |
|
87 |
# Gradio Interface
|
88 |
with gr.Blocks() as app:
|
89 |
-
gr.Markdown("
|
90 |
|
91 |
with gr.Tab("Patient Registration"):
|
92 |
with gr.Row():
|
@@ -124,59 +122,6 @@ with gr.Blocks() as app:
|
|
124 |
|
125 |
# Custom Advanced CSS styling
|
126 |
app.css = """
|
127 |
-
/* Your existing global and element styling here */
|
128 |
-
|
129 |
-
body {
|
130 |
-
font-family: 'Arial', sans-serif;
|
131 |
-
background: url('./background.png') no-repeat center center fixed;
|
132 |
-
background-size: cover;
|
133 |
-
color: #f0f0f0;
|
134 |
-
}
|
135 |
-
|
136 |
-
.gradio-container {
|
137 |
-
max-width: 850px;
|
138 |
-
margin: 20px auto;
|
139 |
-
padding: 30px;
|
140 |
-
background: rgba(34, 34, 34, 0.85);
|
141 |
-
border-radius: 12px;
|
142 |
-
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.5);
|
143 |
-
}
|
144 |
-
|
145 |
-
/* Advanced styling for Test Categories and Available Tests checkboxes */
|
146 |
-
.gr-checkbox-group label {
|
147 |
-
display: inline-flex;
|
148 |
-
align-items: center;
|
149 |
-
padding: 10px 15px;
|
150 |
-
margin: 5px;
|
151 |
-
font-size: 0.9em;
|
152 |
-
font-weight: bold;
|
153 |
-
color: #f0f0f0;
|
154 |
-
background-color: #333;
|
155 |
-
border: 1px solid #555;
|
156 |
-
border-radius: 8px;
|
157 |
-
cursor: pointer;
|
158 |
-
transition: all 0.3s ease;
|
159 |
-
}
|
160 |
-
|
161 |
-
.gr-checkbox-group label:hover {
|
162 |
-
background-color: #444;
|
163 |
-
border-color: #ff9800;
|
164 |
-
color: #ff9800;
|
165 |
-
}
|
166 |
-
|
167 |
-
.gr-checkbox-group input[type="checkbox"]:checked + label {
|
168 |
-
background-color: #ff9800;
|
169 |
-
border-color: #ff9800;
|
170 |
-
color: #ffffff;
|
171 |
-
}
|
172 |
-
|
173 |
-
.gr-checkbox-group input[type="checkbox"] {
|
174 |
-
display: none;
|
175 |
-
}
|
176 |
-
|
177 |
-
/* Continue with the rest of your CSS */
|
178 |
-
|
179 |
-
/* Global styling */
|
180 |
body {
|
181 |
font-family: 'Arial', sans-serif;
|
182 |
background: url('./background.png') no-repeat center center fixed;
|
@@ -257,15 +202,36 @@ body {
|
|
257 |
transform: translateY(0px);
|
258 |
}
|
259 |
|
260 |
-
/*
|
261 |
.gr-checkbox-group label {
|
|
|
|
|
|
|
|
|
|
|
|
|
262 |
color: #f0f0f0;
|
263 |
-
|
264 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
265 |
}
|
266 |
|
267 |
.gr-checkbox-group input[type="checkbox"] {
|
268 |
-
|
269 |
}
|
270 |
|
271 |
/* Billing Output Styling */
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
import json
|
3 |
from datetime import datetime
|
|
|
84 |
|
85 |
# Gradio Interface
|
86 |
with gr.Blocks() as app:
|
87 |
+
gr.Markdown("<h1 style='text-align: center;'>\t\t\tSathkrutha LIMS</h1>", elem_id="header")
|
88 |
|
89 |
with gr.Tab("Patient Registration"):
|
90 |
with gr.Row():
|
|
|
122 |
|
123 |
# Custom Advanced CSS styling
|
124 |
app.css = """
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
125 |
body {
|
126 |
font-family: 'Arial', sans-serif;
|
127 |
background: url('./background.png') no-repeat center center fixed;
|
|
|
202 |
transform: translateY(0px);
|
203 |
}
|
204 |
|
205 |
+
/* Advanced styling for Test Categories and Available Tests checkboxes */
|
206 |
.gr-checkbox-group label {
|
207 |
+
display: inline-flex;
|
208 |
+
align-items: center;
|
209 |
+
padding: 10px 15px;
|
210 |
+
margin: 5px;
|
211 |
+
font-size: 0.9em;
|
212 |
+
font-weight: bold;
|
213 |
color: #f0f0f0;
|
214 |
+
background-color: #333;
|
215 |
+
border: 1px solid #555;
|
216 |
+
border-radius: 8px;
|
217 |
+
cursor: pointer;
|
218 |
+
transition: all 0.3s ease;
|
219 |
+
}
|
220 |
+
|
221 |
+
.gr-checkbox-group label:hover {
|
222 |
+
background-color: #444;
|
223 |
+
border-color: #ff9800;
|
224 |
+
color: #ff9800;
|
225 |
+
}
|
226 |
+
|
227 |
+
.gr-checkbox-group input[type="checkbox"]:checked + label {
|
228 |
+
background-color: #ff9800;
|
229 |
+
border-color: #ff9800;
|
230 |
+
color: #ffffff;
|
231 |
}
|
232 |
|
233 |
.gr-checkbox-group input[type="checkbox"] {
|
234 |
+
display: none;
|
235 |
}
|
236 |
|
237 |
/* Billing Output Styling */
|