Spaces:
Sleeping
Sleeping
Mahdi Naser Moghadasi commited on
Commit ·
bdecf43
1
Parent(s): ce7e441
Revert dark mode and fix gray dropdowns: Add interactive=True to all dropdowns
Browse files
app.py
CHANGED
|
@@ -1291,54 +1291,6 @@ with gr.Blocks(
|
|
| 1291 |
title="BrightMind AI - Educational Content Generator",
|
| 1292 |
theme=gr.themes.Soft(),
|
| 1293 |
css="""
|
| 1294 |
-
/* Force dark mode */
|
| 1295 |
-
.gradio-container {
|
| 1296 |
-
background: #1a1a1a !important;
|
| 1297 |
-
color: #ffffff !important;
|
| 1298 |
-
}
|
| 1299 |
-
|
| 1300 |
-
.gradio-container * {
|
| 1301 |
-
background-color: #1a1a1a !important;
|
| 1302 |
-
color: #ffffff !important;
|
| 1303 |
-
}
|
| 1304 |
-
|
| 1305 |
-
.gradio-container input, .gradio-container textarea, .gradio-container select {
|
| 1306 |
-
background-color: #2d2d2d !important;
|
| 1307 |
-
color: #ffffff !important;
|
| 1308 |
-
border: 1px solid #444444 !important;
|
| 1309 |
-
}
|
| 1310 |
-
|
| 1311 |
-
.gradio-container .btn {
|
| 1312 |
-
background-color: #4a4a4a !important;
|
| 1313 |
-
color: #ffffff !important;
|
| 1314 |
-
border: 1px solid #666666 !important;
|
| 1315 |
-
}
|
| 1316 |
-
|
| 1317 |
-
.gradio-container .btn:hover {
|
| 1318 |
-
background-color: #5a5a5a !important;
|
| 1319 |
-
}
|
| 1320 |
-
|
| 1321 |
-
.gradio-container .tab-nav button {
|
| 1322 |
-
background-color: #2d2d2d !important;
|
| 1323 |
-
color: #ffffff !important;
|
| 1324 |
-
border: 1px solid #444444 !important;
|
| 1325 |
-
}
|
| 1326 |
-
|
| 1327 |
-
.gradio-container .tab-nav button.selected {
|
| 1328 |
-
background-color: #4a4a4a !important;
|
| 1329 |
-
}
|
| 1330 |
-
|
| 1331 |
-
.gradio-container .chatbot {
|
| 1332 |
-
background-color: #1a1a1a !important;
|
| 1333 |
-
color: #ffffff !important;
|
| 1334 |
-
}
|
| 1335 |
-
|
| 1336 |
-
.gradio-container .chatbot .message {
|
| 1337 |
-
background-color: #2d2d2d !important;
|
| 1338 |
-
color: #ffffff !important;
|
| 1339 |
-
}
|
| 1340 |
-
|
| 1341 |
-
/* Original CSS */
|
| 1342 |
.progress-container {
|
| 1343 |
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 1344 |
border-radius: 15px;
|
|
@@ -1797,12 +1749,14 @@ with gr.Blocks(
|
|
| 1797 |
subject = gr.Dropdown(
|
| 1798 |
choices=["Science", "Mathematics", "History", "English Language Arts", "Geography", "Art"],
|
| 1799 |
label="Subject",
|
| 1800 |
-
value="Science"
|
|
|
|
| 1801 |
)
|
| 1802 |
grade_level = gr.Dropdown(
|
| 1803 |
choices=["K-2", "3-5", "6-8", "9-12"],
|
| 1804 |
label="Grade Level",
|
| 1805 |
-
value="6-8"
|
|
|
|
| 1806 |
)
|
| 1807 |
duration = gr.Slider(
|
| 1808 |
minimum=30,
|
|
@@ -1814,7 +1768,8 @@ with gr.Blocks(
|
|
| 1814 |
difficulty = gr.Dropdown(
|
| 1815 |
choices=["Beginner", "Intermediate", "Advanced"],
|
| 1816 |
label="Difficulty",
|
| 1817 |
-
value="Intermediate"
|
|
|
|
| 1818 |
)
|
| 1819 |
|
| 1820 |
generate_lesson_btn = gr.Button("Generate Lesson Plan", variant="primary")
|
|
@@ -1840,12 +1795,14 @@ with gr.Blocks(
|
|
| 1840 |
quiz_subject = gr.Dropdown(
|
| 1841 |
choices=["Science", "Mathematics", "History", "English Language Arts", "Geography", "Art"],
|
| 1842 |
label="Subject",
|
| 1843 |
-
value="Science"
|
|
|
|
| 1844 |
)
|
| 1845 |
quiz_grade_level = gr.Dropdown(
|
| 1846 |
choices=["K-2", "3-5", "6-8", "9-12"],
|
| 1847 |
label="Grade Level",
|
| 1848 |
-
value="6-8"
|
|
|
|
| 1849 |
)
|
| 1850 |
question_count = gr.Slider(
|
| 1851 |
minimum=3,
|
|
|
|
| 1291 |
title="BrightMind AI - Educational Content Generator",
|
| 1292 |
theme=gr.themes.Soft(),
|
| 1293 |
css="""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1294 |
.progress-container {
|
| 1295 |
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 1296 |
border-radius: 15px;
|
|
|
|
| 1749 |
subject = gr.Dropdown(
|
| 1750 |
choices=["Science", "Mathematics", "History", "English Language Arts", "Geography", "Art"],
|
| 1751 |
label="Subject",
|
| 1752 |
+
value="Science",
|
| 1753 |
+
interactive=True
|
| 1754 |
)
|
| 1755 |
grade_level = gr.Dropdown(
|
| 1756 |
choices=["K-2", "3-5", "6-8", "9-12"],
|
| 1757 |
label="Grade Level",
|
| 1758 |
+
value="6-8",
|
| 1759 |
+
interactive=True
|
| 1760 |
)
|
| 1761 |
duration = gr.Slider(
|
| 1762 |
minimum=30,
|
|
|
|
| 1768 |
difficulty = gr.Dropdown(
|
| 1769 |
choices=["Beginner", "Intermediate", "Advanced"],
|
| 1770 |
label="Difficulty",
|
| 1771 |
+
value="Intermediate",
|
| 1772 |
+
interactive=True
|
| 1773 |
)
|
| 1774 |
|
| 1775 |
generate_lesson_btn = gr.Button("Generate Lesson Plan", variant="primary")
|
|
|
|
| 1795 |
quiz_subject = gr.Dropdown(
|
| 1796 |
choices=["Science", "Mathematics", "History", "English Language Arts", "Geography", "Art"],
|
| 1797 |
label="Subject",
|
| 1798 |
+
value="Science",
|
| 1799 |
+
interactive=True
|
| 1800 |
)
|
| 1801 |
quiz_grade_level = gr.Dropdown(
|
| 1802 |
choices=["K-2", "3-5", "6-8", "9-12"],
|
| 1803 |
label="Grade Level",
|
| 1804 |
+
value="6-8",
|
| 1805 |
+
interactive=True
|
| 1806 |
)
|
| 1807 |
question_count = gr.Slider(
|
| 1808 |
minimum=3,
|