Update app.py
Browse files
app.py
CHANGED
|
@@ -22,10 +22,13 @@ def generate_table(number):
|
|
| 22 |
return "<h3 style='color:red;'>β οΈ Please enter a valid number!</h3>"
|
| 23 |
|
| 24 |
# Gradio interface
|
| 25 |
-
title = "
|
|
|
|
|
|
|
|
|
|
| 26 |
description = """
|
| 27 |
-
<h3 style='color:orange;'>π¨ Welcome to the fun and colorful multiplication chatbot for kids! π¨</h3>
|
| 28 |
-
<ul style="color:darkblue; font-size:
|
| 29 |
<li>Type a number to see its vibrant multiplication table!</li>
|
| 30 |
<li>Type <b>0</b> to exit.</li>
|
| 31 |
</ul>
|
|
@@ -38,9 +41,15 @@ with gr.Blocks() as interface:
|
|
| 38 |
|
| 39 |
with gr.Row():
|
| 40 |
with gr.Column():
|
| 41 |
-
input_box = gr.Number(
|
|
|
|
|
|
|
|
|
|
| 42 |
with gr.Column():
|
| 43 |
-
output_box = gr.HTML(
|
|
|
|
|
|
|
|
|
|
| 44 |
|
| 45 |
generate_button = gr.Button("π Generate Table π", elem_id="generate-button")
|
| 46 |
exit_message = gr.HTML(elem_id="exit-message")
|
|
|
|
| 22 |
return "<h3 style='color:red;'>β οΈ Please enter a valid number!</h3>"
|
| 23 |
|
| 24 |
# Gradio interface
|
| 25 |
+
title = """
|
| 26 |
+
<h1 style='color:purple; text-shadow: 2px 2px 4px #FFA500;'>π Multiplication Table Chatbot for Kids π</h1>
|
| 27 |
+
"""
|
| 28 |
+
|
| 29 |
description = """
|
| 30 |
+
<h3 style='color:orange; text-shadow: 1px 1px 2px #FF6347;'>π¨ Welcome to the fun and colorful multiplication chatbot for kids! π¨</h3>
|
| 31 |
+
<ul style="color:darkblue; font-size: 18px; font-family: Comic Sans MS;">
|
| 32 |
<li>Type a number to see its vibrant multiplication table!</li>
|
| 33 |
<li>Type <b>0</b> to exit.</li>
|
| 34 |
</ul>
|
|
|
|
| 41 |
|
| 42 |
with gr.Row():
|
| 43 |
with gr.Column():
|
| 44 |
+
input_box = gr.Number(
|
| 45 |
+
label="<span style='color:teal; font-size: 18px;'>Enter a number</span> π²",
|
| 46 |
+
elem_id="input-box"
|
| 47 |
+
)
|
| 48 |
with gr.Column():
|
| 49 |
+
output_box = gr.HTML(
|
| 50 |
+
label="<span style='color:crimson; font-size: 18px;'>Your Colorful Multiplication Table</span>",
|
| 51 |
+
elem_id="output-box"
|
| 52 |
+
)
|
| 53 |
|
| 54 |
generate_button = gr.Button("π Generate Table π", elem_id="generate-button")
|
| 55 |
exit_message = gr.HTML(elem_id="exit-message")
|