Makima57 commited on
Commit
9065ab9
Β·
verified Β·
1 Parent(s): 72557af

Update app.py

Browse files

css try 3 bold

Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -126,7 +126,6 @@ custom_css = """
126
  font-family: 'Poppins', sans-serif;
127
  font-size: 20px;
128
  color: #007acc;
129
- font-weight: bold;
130
  margin-bottom: 5px;
131
  display: inline-block;
132
  }
@@ -135,6 +134,7 @@ custom_css = """
135
  color: #333;
136
  border-radius: 8px;
137
  padding: 12px;
 
138
  }
139
  #results {
140
  font-family: 'Courier New', Courier, monospace;
@@ -158,13 +158,13 @@ custom_css = """
158
  interface = gr.Interface(
159
  fn=gradio_interface,
160
  inputs=[
161
- gr.Textbox(label="🧠 <b>Math Question</b>", placeholder="Enter your math question here...", elem_id="math_question"),
162
- gr.Textbox(label="βœ… <b>Correct Answer</b>", placeholder="Enter the correct answer here...", elem_id="correct_answer"),
163
  ],
164
  outputs=[
165
- gr.JSON(label="πŸ“Š Results", elem_id="results"), # Display the results in a JSON format
166
  ],
167
- title="πŸ”’ Math Question Solver",
168
  description="Enter a math question to get the model prediction and see all generated answers.",
169
  css=custom_css # Apply custom CSS
170
  )
 
126
  font-family: 'Poppins', sans-serif;
127
  font-size: 20px;
128
  color: #007acc;
 
129
  margin-bottom: 5px;
130
  display: inline-block;
131
  }
 
134
  color: #333;
135
  border-radius: 8px;
136
  padding: 12px;
137
+ font-weight: bold; /* Apply bold */
138
  }
139
  #results {
140
  font-family: 'Courier New', Courier, monospace;
 
158
  interface = gr.Interface(
159
  fn=gradio_interface,
160
  inputs=[
161
+ gr.Textbox(label="Math Question", placeholder="Enter your math question here...", elem_id="math_question", elem_classes="bold-label"),
162
+ gr.Textbox(label="Correct Answer", placeholder="Enter the correct answer here...", elem_id="correct_answer", elem_classes="bold-label"),
163
  ],
164
  outputs=[
165
+ gr.JSON(label="Results", elem_id="results"), # Display the results in a JSON format
166
  ],
167
+ title="Math Question Solver",
168
  description="Enter a math question to get the model prediction and see all generated answers.",
169
  css=custom_css # Apply custom CSS
170
  )