TDMaule commited on
Commit
02d787d
·
verified ·
1 Parent(s): 76f299e

fix gradio

Browse files
Files changed (1) hide show
  1. app.py +15 -3
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
- # ... your existing markdown ...
 
151
 
152
- chatbot_ui = gr.Chatbot(height=500, label="Chat History")
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...",