Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -26,10 +26,41 @@ def arithmetic(num1, num2, operation):
|
|
26 |
|
27 |
return res[0]
|
28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
with gr.Blocks(
|
30 |
title="R-Powered Calculator",
|
31 |
-
theme=
|
32 |
-
css =
|
33 |
) as app:
|
34 |
gr.HTML(
|
35 |
"""
|
|
|
26 |
|
27 |
return res[0]
|
28 |
|
29 |
+
custom_css = """
|
30 |
+
/* Set dark background for the entire app */
|
31 |
+
.gradio-container {
|
32 |
+
background-color: #121212;
|
33 |
+
color: #ffffff;
|
34 |
+
}
|
35 |
+
|
36 |
+
/* Apply gradient blue background to buttons */
|
37 |
+
button {
|
38 |
+
background: linear-gradient(to right, #1e3c72, #2a5298);
|
39 |
+
color: #ffffff;
|
40 |
+
border: none;
|
41 |
+
}
|
42 |
+
|
43 |
+
/* Apply gradient blue border to textboxes */
|
44 |
+
input[type="text"], textarea {
|
45 |
+
border: 2px solid;
|
46 |
+
border-image: linear-gradient(to right, #1e3c72, #2a5298);
|
47 |
+
border-image-slice: 1;
|
48 |
+
background-color: #1e1e1e;
|
49 |
+
color: #ffffff;
|
50 |
+
}
|
51 |
+
|
52 |
+
/* Style the labels */
|
53 |
+
label {
|
54 |
+
color: #ffffff;
|
55 |
+
}
|
56 |
+
|
57 |
+
/* Hide footer display */
|
58 |
+
footer {display: none !important;}
|
59 |
+
"""
|
60 |
with gr.Blocks(
|
61 |
title="R-Powered Calculator",
|
62 |
+
theme=gr.themes.Base(),
|
63 |
+
css = custom_css
|
64 |
) as app:
|
65 |
gr.HTML(
|
66 |
"""
|