Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -134,32 +134,17 @@ custom_css = """
|
|
| 134 |
color: #333;
|
| 135 |
border-radius: 8px;
|
| 136 |
padding: 12px;
|
| 137 |
-
font-weight:
|
| 138 |
-
}
|
| 139 |
-
#results {
|
| 140 |
-
font-family: 'Courier New', Courier, monospace;
|
| 141 |
-
background-color: #f3f4f6;
|
| 142 |
-
color: #005f99;
|
| 143 |
-
font-size: 16px;
|
| 144 |
-
padding: 10px;
|
| 145 |
-
border-radius: 8px;
|
| 146 |
-
}
|
| 147 |
-
/* Make the JSON {} icon smaller */
|
| 148 |
-
.gr-output-json .json-key {
|
| 149 |
-
font-size: 20px !important;
|
| 150 |
-
}
|
| 151 |
-
.gr-output-json .json-key img {
|
| 152 |
-
width: 20px !important;
|
| 153 |
-
height: 20px !important;
|
| 154 |
}
|
|
|
|
| 155 |
"""
|
| 156 |
|
| 157 |
# Gradio app setup
|
| 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"
|
| 162 |
-
gr.Textbox(label="β
Correct Answer", placeholder="Enter the correct answer here...", elem_id="correct_answer"
|
| 163 |
],
|
| 164 |
outputs=[
|
| 165 |
gr.JSON(label="π Results"), # Display the results in a JSON format
|
|
|
|
| 134 |
color: #333;
|
| 135 |
border-radius: 8px;
|
| 136 |
padding: 12px;
|
| 137 |
+
font-weight: 500px; /* Apply bold */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 138 |
}
|
| 139 |
+
|
| 140 |
"""
|
| 141 |
|
| 142 |
# Gradio app setup
|
| 143 |
interface = gr.Interface(
|
| 144 |
fn=gradio_interface,
|
| 145 |
inputs=[
|
| 146 |
+
gr.Textbox(label="π§ Math Question", placeholder="Enter your math question here...", elem_id="math_question"),
|
| 147 |
+
gr.Textbox(label="β
Correct Answer", placeholder="Enter the correct answer here...", elem_id="correct_answer"),
|
| 148 |
],
|
| 149 |
outputs=[
|
| 150 |
gr.JSON(label="π Results"), # Display the results in a JSON format
|