Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -181,4 +181,53 @@ demo = gr.ChatInterface(
|
|
| 181 |
๐ **Educational Modes:**
|
| 182 |
โข ๐งฎ **Math Mode** - Step-by-step problem solving with detailed explanations
|
| 183 |
โข ๐ **Research Mode** - Source finding, evaluation, and citation guidance
|
| 184 |
-
โข ๐ **Study Mode** - Learning strategies and exam preparation techniques
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 181 |
๐ **Educational Modes:**
|
| 182 |
โข ๐งฎ **Math Mode** - Step-by-step problem solving with detailed explanations
|
| 183 |
โข ๐ **Research Mode** - Source finding, evaluation, and citation guidance
|
| 184 |
+
โข ๐ **Study Mode** - Learning strategies and exam preparation techniques
|
| 185 |
+
โข ๐ **General Mode** - Comprehensive educational support
|
| 186 |
+
|
| 187 |
+
๐ก **Tip:** Try asking detailed questions for thorough explanations!
|
| 188 |
+
""",
|
| 189 |
+
examples=[
|
| 190 |
+
["Solve the quadratic equation xยฒ + 5x + 6 = 0 with complete step-by-step explanations"],
|
| 191 |
+
["How do I conduct a comprehensive literature review for my psychology research paper?"],
|
| 192 |
+
["Create a detailed study schedule for my calculus and chemistry final exams"],
|
| 193 |
+
["Explain derivatives in calculus with real-world applications and examples"],
|
| 194 |
+
["How do I properly format citations in APA style with detailed guidelines?"]
|
| 195 |
+
],
|
| 196 |
+
additional_inputs=[
|
| 197 |
+
gr.Textbox(
|
| 198 |
+
value="You are EduBot, an expert AI learning assistant. Provide comprehensive, educational responses that help students truly understand concepts.",
|
| 199 |
+
label="Custom System Message",
|
| 200 |
+
placeholder="Customize how EduBot behaves...",
|
| 201 |
+
lines=2
|
| 202 |
+
),
|
| 203 |
+
gr.Slider(
|
| 204 |
+
minimum=1,
|
| 205 |
+
maximum=1024,
|
| 206 |
+
value=600,
|
| 207 |
+
step=1,
|
| 208 |
+
label="Max Tokens"
|
| 209 |
+
),
|
| 210 |
+
gr.Slider(
|
| 211 |
+
minimum=0.1,
|
| 212 |
+
maximum=2.0,
|
| 213 |
+
value=0.7,
|
| 214 |
+
step=0.1,
|
| 215 |
+
label="Temperature"
|
| 216 |
+
),
|
| 217 |
+
gr.Slider(
|
| 218 |
+
minimum=0.1,
|
| 219 |
+
maximum=1.0,
|
| 220 |
+
value=0.9,
|
| 221 |
+
step=0.05,
|
| 222 |
+
label="Top-p"
|
| 223 |
+
),
|
| 224 |
+
],
|
| 225 |
+
theme=gr.themes.Soft(
|
| 226 |
+
primary_hue="blue",
|
| 227 |
+
secondary_hue="green"
|
| 228 |
+
)
|
| 229 |
+
)
|
| 230 |
+
|
| 231 |
+
if __name__ == "__main__":
|
| 232 |
+
logger.info("Starting EduBot application...")
|
| 233 |
+
demo.launch()
|