Update app.py
Browse files
app.py
CHANGED
|
@@ -12,20 +12,18 @@ from teacher_panel import (
|
|
| 12 |
|
| 13 |
# Build Gradio UI
|
| 14 |
with gr.Blocks() as demo:
|
| 15 |
-
gr.Markdown("## 🐘 Laos
|
| 16 |
|
| 17 |
# ---------------- Student tab ----------------
|
| 18 |
with gr.Tab("👩🎓 Student Chat"):
|
| 19 |
-
gr.Markdown("
|
| 20 |
gr.ChatInterface(
|
| 21 |
fn=laos_history_bot,
|
| 22 |
title="",
|
| 23 |
description="",
|
| 24 |
examples=[
|
| 25 |
-
"
|
| 26 |
-
|
| 27 |
-
"ຫຼັກຖານປະຫວັດສາດມີຫຍັງແດ່?",
|
| 28 |
-
"ຈະປ່ຽນຈາກປີຄ.ສ ເປັນປີພ.ສ ໄດ້ແນວໃດ?",
|
| 29 |
],
|
| 30 |
)
|
| 31 |
|
|
@@ -39,7 +37,7 @@ with gr.Blocks() as demo:
|
|
| 39 |
q_box = gr.Textbox(
|
| 40 |
label="ຄໍາຖາມ (ພາສາລາວ)",
|
| 41 |
lines=3,
|
| 42 |
-
placeholder="
|
| 43 |
)
|
| 44 |
a_box = gr.Textbox(
|
| 45 |
label="ຄໍາຕອບ (ພາສາລາວ)",
|
|
|
|
| 12 |
|
| 13 |
# Build Gradio UI
|
| 14 |
with gr.Blocks() as demo:
|
| 15 |
+
gr.Markdown("## 🐘 Laos Natural Science Chatbot – ສໍາລັບນັກຮຽນ ມ.1")
|
| 16 |
|
| 17 |
# ---------------- Student tab ----------------
|
| 18 |
with gr.Tab("👩🎓 Student Chat"):
|
| 19 |
+
gr.Markdown("ຖາມຄໍາຖາມວິທະຍາສາດທຳມະຊາດພາສາລາວໄດ້ເລີຍ.")
|
| 20 |
gr.ChatInterface(
|
| 21 |
fn=laos_history_bot,
|
| 22 |
title="",
|
| 23 |
description="",
|
| 24 |
examples=[
|
| 25 |
+
"ວິທະຍາສາດທຳມະຊາດແມ່ນຫຍັງ?",
|
| 26 |
+
|
|
|
|
|
|
|
| 27 |
],
|
| 28 |
)
|
| 29 |
|
|
|
|
| 37 |
q_box = gr.Textbox(
|
| 38 |
label="ຄໍາຖາມ (ພາສາລາວ)",
|
| 39 |
lines=3,
|
| 40 |
+
placeholder="ພິມຄໍາຖາມວິທະຍາສາດທຳມະຊາດ...",
|
| 41 |
)
|
| 42 |
a_box = gr.Textbox(
|
| 43 |
label="ຄໍາຕອບ (ພາສາລາວ)",
|