Madiharehan commited on
Commit
f18b4c7
Β·
verified Β·
1 Parent(s): 933a2d1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -5
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 = "<span style='color:purple;'>🌟 Multiplication Table Chatbot for Kids 🌟</span>"
 
 
 
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: 16px;">
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(label="<span style='color:teal;'>Enter a number</span> 🎲", elem_id="input-box")
 
 
 
42
  with gr.Column():
43
- output_box = gr.HTML(label="<span style='color:crimson;'>Your Colorful Multiplication Table</span>", elem_id="output-box")
 
 
 
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")