Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -59,15 +59,6 @@ button:hover {
|
|
59 |
background: linear-gradient(135deg, #60a5fa, #2563eb);
|
60 |
}
|
61 |
|
62 |
-
/* Result field styling */
|
63 |
-
#result input {
|
64 |
-
background-color: #1e1e1e;
|
65 |
-
color: #00ffcc;
|
66 |
-
font-size: 1.5em;
|
67 |
-
border: 1px solid #444;
|
68 |
-
text-align: center;
|
69 |
-
}
|
70 |
-
|
71 |
/* Center heading text */
|
72 |
h1, h3 {
|
73 |
text-align: center;
|
@@ -102,8 +93,8 @@ with gr.Blocks(
|
|
102 |
with gr.Row():
|
103 |
submit = gr.Button("Run Operation")
|
104 |
with gr.Column():
|
105 |
-
gr.HTML("<h2><strong>Arithmetic Operation Result</strong></h2>")
|
106 |
-
result = gr.Number(
|
107 |
|
108 |
submit.click(arithmetic, inputs=[num1, num2, operation], outputs=[result])
|
109 |
|
|
|
59 |
background: linear-gradient(135deg, #60a5fa, #2563eb);
|
60 |
}
|
61 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
/* Center heading text */
|
63 |
h1, h3 {
|
64 |
text-align: center;
|
|
|
93 |
with gr.Row():
|
94 |
submit = gr.Button("Run Operation")
|
95 |
with gr.Column():
|
96 |
+
gr.HTML("<h2 style='text-align:center;'><strong>Arithmetic Operation Result</strong></h2>")
|
97 |
+
result = gr.Number()
|
98 |
|
99 |
submit.click(arithmetic, inputs=[num1, num2, operation], outputs=[result])
|
100 |
|