Update app.py
Browse files
app.py
CHANGED
|
@@ -334,10 +334,10 @@ with gr.Blocks(theme=THEME, css=CUSTOM_CSS) as demo:
|
|
| 334 |
student_dd = gr.Dropdown(label="Select Student", choices=list_student_ids() or [])
|
| 335 |
user_msg = gr.Textbox(label="Message", placeholder="Type roadmap, insights, or a question")
|
| 336 |
ask_btn = gr.Button("Ask", variant="primary")
|
|
|
|
| 337 |
with gr.Row():
|
| 338 |
-
roadmap_out = gr.Textbox(label="Roadmap", lines=
|
| 339 |
insights_out = gr.Textbox(label="Insights", lines=10, elem_classes=["card"])
|
| 340 |
-
chatbot_out = gr.Textbox(label="Response", lines=6, elem_classes=["card"])
|
| 341 |
ask_btn.click(fn=chat, inputs=[student_dd, user_msg], outputs=[roadmap_out, insights_out, chatbot_out])
|
| 342 |
|
| 343 |
with gr.Tab("➕ Add Student"):
|
|
|
|
| 334 |
student_dd = gr.Dropdown(label="Select Student", choices=list_student_ids() or [])
|
| 335 |
user_msg = gr.Textbox(label="Message", placeholder="Type roadmap, insights, or a question")
|
| 336 |
ask_btn = gr.Button("Ask", variant="primary")
|
| 337 |
+
chatbot_out = gr.Textbox(label="Response", lines=6, elem_classes=["card"])
|
| 338 |
with gr.Row():
|
| 339 |
+
roadmap_out = gr.Textbox(label="Roadmap", lines=10, elem_classes=["card"])
|
| 340 |
insights_out = gr.Textbox(label="Insights", lines=10, elem_classes=["card"])
|
|
|
|
| 341 |
ask_btn.click(fn=chat, inputs=[student_dd, user_msg], outputs=[roadmap_out, insights_out, chatbot_out])
|
| 342 |
|
| 343 |
with gr.Tab("➕ Add Student"):
|