Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -83,17 +83,14 @@ custom_css = """
|
|
| 83 |
background-color: #f1f8ff;
|
| 84 |
margin-bottom: 15px;
|
| 85 |
}
|
| 86 |
-
|
| 87 |
font-size: 20px;
|
| 88 |
font-family: 'Poppins', sans-serif;
|
| 89 |
-
font-weight:
|
| 90 |
-
|
| 91 |
-
|
| 92 |
color: #007acc;
|
| 93 |
margin-bottom: 5px;
|
| 94 |
display: inline-block;
|
| 95 |
}
|
| 96 |
-
|
| 97 |
textarea {
|
| 98 |
min-height: 150px;
|
| 99 |
}
|
|
@@ -133,15 +130,15 @@ custom_css = """
|
|
| 133 |
font-weight: bold;
|
| 134 |
color: #00796b;
|
| 135 |
}
|
| 136 |
-
|
| 137 |
"""
|
| 138 |
|
|
|
|
| 139 |
# Gradio app setup
|
| 140 |
interface = gr.Interface(
|
| 141 |
fn=gradio_interface,
|
| 142 |
inputs=[
|
| 143 |
-
gr.Textbox(label="π§ Math Question", placeholder="Enter your math question here...", elem_id="math_question"),
|
| 144 |
-
gr.Textbox(label="β
Correct Answer", placeholder="Enter the correct answer here...", elem_id="correct_answer"),
|
| 145 |
],
|
| 146 |
outputs=[
|
| 147 |
gr.JSON(label="π Results"), # Display the results in a JSON format
|
|
@@ -153,3 +150,6 @@ interface = gr.Interface(
|
|
| 153 |
|
| 154 |
if __name__ == "__main__":
|
| 155 |
interface.launch()
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
background-color: #f1f8ff;
|
| 84 |
margin-bottom: 15px;
|
| 85 |
}
|
| 86 |
+
.label-math-question, .label-correct-answer {
|
| 87 |
font-size: 20px;
|
| 88 |
font-family: 'Poppins', sans-serif;
|
| 89 |
+
font-weight: bold; /* Apply bold correctly */
|
|
|
|
|
|
|
| 90 |
color: #007acc;
|
| 91 |
margin-bottom: 5px;
|
| 92 |
display: inline-block;
|
| 93 |
}
|
|
|
|
| 94 |
textarea {
|
| 95 |
min-height: 150px;
|
| 96 |
}
|
|
|
|
| 130 |
font-weight: bold;
|
| 131 |
color: #00796b;
|
| 132 |
}
|
|
|
|
| 133 |
"""
|
| 134 |
|
| 135 |
+
|
| 136 |
# Gradio app setup
|
| 137 |
interface = gr.Interface(
|
| 138 |
fn=gradio_interface,
|
| 139 |
inputs=[
|
| 140 |
+
gr.Textbox(label="π§ Math Question", placeholder="Enter your math question here...", elem_id="math_question", label_classes=["label-math-question"]),
|
| 141 |
+
gr.Textbox(label="β
Correct Answer", placeholder="Enter the correct answer here...", elem_id="correct_answer", label_classes=["label-correct-answer"]),
|
| 142 |
],
|
| 143 |
outputs=[
|
| 144 |
gr.JSON(label="π Results"), # Display the results in a JSON format
|
|
|
|
| 150 |
|
| 151 |
if __name__ == "__main__":
|
| 152 |
interface.launch()
|
| 153 |
+
|
| 154 |
+
)
|
| 155 |
+
|