Spaces:
Sleeping
Sleeping
Update app.py
Browse filescss try 3 bold
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="
|
| 162 |
-
gr.Textbox(label="
|
| 163 |
],
|
| 164 |
outputs=[
|
| 165 |
-
gr.JSON(label="
|
| 166 |
],
|
| 167 |
-
title="
|
| 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 |
)
|