Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -83,14 +83,17 @@ 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 |
color: #007acc;
|
91 |
margin-bottom: 5px;
|
92 |
display: inline-block;
|
93 |
}
|
|
|
94 |
textarea {
|
95 |
min-height: 150px;
|
96 |
}
|
@@ -130,15 +133,15 @@ custom_css = """
|
|
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"
|
141 |
-
gr.Textbox(label="β
Correct Answer", placeholder="Enter the correct answer here...", elem_id="correct_answer"
|
142 |
],
|
143 |
outputs=[
|
144 |
gr.JSON(label="π Results"), # Display the results in a JSON format
|
@@ -149,7 +152,4 @@ interface = gr.Interface(
|
|
149 |
)
|
150 |
|
151 |
if __name__ == "__main__":
|
152 |
-
interface.launch()
|
153 |
-
|
154 |
-
|
155 |
-
|
|
|
83 |
background-color: #f1f8ff;
|
84 |
margin-bottom: 15px;
|
85 |
}
|
86 |
+
#math_question, #correct_answer {
|
87 |
font-size: 20px;
|
88 |
font-family: 'Poppins', sans-serif;
|
89 |
+
font-weight: 500px; /* Apply bold */
|
90 |
+
|
91 |
+
|
92 |
color: #007acc;
|
93 |
margin-bottom: 5px;
|
94 |
display: inline-block;
|
95 |
}
|
96 |
+
|
97 |
textarea {
|
98 |
min-height: 150px;
|
99 |
}
|
|
|
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
|
|
|
152 |
)
|
153 |
|
154 |
if __name__ == "__main__":
|
155 |
+
interface.launch()
|
|
|
|
|
|