Heng2004 commited on
Commit
41e8c14
·
verified ·
1 Parent(s): e98d6c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -7
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 History 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
  ],
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="ຄໍາຕອບ (ພາສາລາວ)",