Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -289,47 +289,7 @@ def clear_inputs(image, partOfBody):
|
|
289 |
partOfBody=""
|
290 |
return image, partOfBody
|
291 |
|
292 |
-
|
293 |
-
def __init__(self):
|
294 |
-
super().__init__(
|
295 |
-
primary_hue=colors.blue,
|
296 |
-
secondary_hue=colors.slate,
|
297 |
-
neutral_hue=colors.gray,
|
298 |
-
font=[Base.fonts.SANS],
|
299 |
-
)
|
300 |
-
self.set(
|
301 |
-
# Backgrounds
|
302 |
-
body_background_fill="#1f2937", # dark slate / near-black
|
303 |
-
body_text_color="#ffffff", # white text
|
304 |
-
block_background_fill="#374151", # medium dark gray
|
305 |
-
block_border_color="#4b5563", # border gray
|
306 |
-
block_shadow=None,
|
307 |
-
block_title_text_color="#ffffff",
|
308 |
-
|
309 |
-
# Input components
|
310 |
-
input_background_fill="#4b5563", # slightly lighter
|
311 |
-
input_border_color="#6b7280", # input border gray
|
312 |
-
input_text_color="#ffffff", # white input text
|
313 |
-
|
314 |
-
# Buttons
|
315 |
-
button_primary_background_fill="#2563eb", # blue-600
|
316 |
-
button_primary_text_color="#ffffff",
|
317 |
-
button_secondary_background_fill="#4b5563",
|
318 |
-
button_secondary_text_color="#ffffff",
|
319 |
-
|
320 |
-
# Checkbox / Radio
|
321 |
-
checkbox_label_text_color="#ffffff",
|
322 |
-
checkbox_background_color_selected="#2563eb",
|
323 |
-
checkbox_border_color="#6b7280",
|
324 |
-
|
325 |
-
# Slider / Progress
|
326 |
-
slider_color="#2563eb",
|
327 |
-
progress_color="#2563eb",
|
328 |
-
)
|
329 |
-
|
330 |
-
theme = CustomDarkGlass()
|
331 |
-
|
332 |
-
with gr.Blocks(theme=theme) as demo:
|
333 |
gr.Markdown("<center><h1>Welcome to WoundView!</h1></center>")
|
334 |
|
335 |
# Sign-up Group
|
|
|
289 |
partOfBody=""
|
290 |
return image, partOfBody
|
291 |
|
292 |
+
with gr.Blocks(theme=gr.themes.Glass()) as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
293 |
gr.Markdown("<center><h1>Welcome to WoundView!</h1></center>")
|
294 |
|
295 |
# Sign-up Group
|