Spaces:
Sleeping
Sleeping
fix gradio
Browse files
app.py
CHANGED
|
@@ -146,11 +146,23 @@ def chatbot(user_input, history):
|
|
| 146 |
|
| 147 |
|
| 148 |
# In the Gradio part — update the misleading text:
|
| 149 |
-
with gr.Blocks(title="Student Academic Assistant – Phi-2", theme=gr.themes.Soft()) as demo:
|
| 150 |
-
|
|
|
|
| 151 |
|
| 152 |
-
|
| 153 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 154 |
with gr.Row():
|
| 155 |
user_input = gr.Textbox(
|
| 156 |
placeholder="Ask me anything about studying...",
|
|
|
|
| 146 |
|
| 147 |
|
| 148 |
# In the Gradio part — update the misleading text:
|
| 149 |
+
with gr.Blocks(title="Student Academic Assistant – Phi-2", theme=gr.themes.Soft()) as demo:
|
| 150 |
+
gr.Markdown("""
|
| 151 |
+
# 🎓 Student Academic Assistant Chatbot
|
| 152 |
|
| 153 |
+
Powered by **microsoft/phi-2** (local version)
|
| 154 |
|
| 155 |
+
Ask me anything about studying, planning, time management, motivation, etc.!
|
| 156 |
+
|
| 157 |
+
**Quick examples:**
|
| 158 |
+
- Create a 2-week study plan for finals
|
| 159 |
+
- How do I break down this 2000-word essay?
|
| 160 |
+
- Suggest Pomodoro alternatives for focus
|
| 161 |
+
- Help prioritize: exam prep vs group project vs reading
|
| 162 |
+
""")
|
| 163 |
+
|
| 164 |
+
chatbot_ui = gr.Chatbot(height=500, label="Chat History")
|
| 165 |
+
|
| 166 |
with gr.Row():
|
| 167 |
user_input = gr.Textbox(
|
| 168 |
placeholder="Ask me anything about studying...",
|