Spaces:
Sleeping
Sleeping
refactor
Browse files
app.py
CHANGED
|
@@ -1727,67 +1727,67 @@ with gr.Blocks() as demo:
|
|
| 1727 |
content_grade = gr.Dropdown(label="選擇年級", choices=["一年級", "二年級", "三年級", "四年級", "五年級", "六年級", "七年級", "八年級", "九年級", "十年級", "十一年級", "十二年級"], value="三年級")
|
| 1728 |
content_level = gr.Dropdown(label="差異化教學", choices=["基礎", "中級", "進階"], value="基礎")
|
| 1729 |
with gr.Row():
|
| 1730 |
-
|
| 1731 |
-
|
| 1732 |
-
|
| 1733 |
-
|
| 1734 |
-
|
| 1735 |
-
|
| 1736 |
-
|
| 1737 |
-
|
| 1738 |
-
|
| 1739 |
-
|
| 1740 |
-
|
| 1741 |
-
|
| 1742 |
-
|
| 1743 |
-
|
| 1744 |
-
|
| 1745 |
-
|
| 1746 |
-
|
| 1747 |
-
|
| 1748 |
-
|
| 1749 |
-
|
| 1750 |
-
|
| 1751 |
-
|
| 1752 |
-
|
| 1753 |
-
|
| 1754 |
-
|
| 1755 |
-
|
| 1756 |
-
|
| 1757 |
-
|
| 1758 |
-
|
| 1759 |
-
|
| 1760 |
-
|
| 1761 |
-
|
| 1762 |
-
|
| 1763 |
-
|
| 1764 |
-
|
| 1765 |
-
|
| 1766 |
-
|
| 1767 |
-
|
| 1768 |
-
|
| 1769 |
-
|
| 1770 |
-
|
| 1771 |
-
|
| 1772 |
-
|
| 1773 |
-
|
| 1774 |
-
|
| 1775 |
-
|
| 1776 |
-
|
| 1777 |
-
|
| 1778 |
-
|
| 1779 |
-
|
| 1780 |
-
|
| 1781 |
-
|
| 1782 |
-
|
| 1783 |
-
|
| 1784 |
-
|
| 1785 |
-
|
| 1786 |
-
|
| 1787 |
-
|
| 1788 |
-
|
| 1789 |
-
|
| 1790 |
-
|
| 1791 |
|
| 1792 |
|
| 1793 |
# with gr.Tab("素養導向閱讀題組"):
|
|
|
|
| 1727 |
content_grade = gr.Dropdown(label="選擇年級", choices=["一年級", "二年級", "三年級", "四年級", "五年級", "六年級", "七年級", "八年級", "九年級", "十年級", "十一年級", "十二年級"], value="三年級")
|
| 1728 |
content_level = gr.Dropdown(label="差異化教學", choices=["基礎", "中級", "進階"], value="基礎")
|
| 1729 |
with gr.Row():
|
| 1730 |
+
with gr.Tab("學習單"):
|
| 1731 |
+
with gr.Row():
|
| 1732 |
+
with gr.Column(scale=1):
|
| 1733 |
+
worksheet_content_type_name = gr.Textbox(value="worksheet", visible=False)
|
| 1734 |
+
worksheet_algorithm = gr.Dropdown(label="選擇教學策略或理論", choices=["Bloom認知階層理論", "Polya數學解題法", "CRA教學法"], value="Bloom認知階層理論")
|
| 1735 |
+
worksheet_content_btn = gr.Button("生成學習單 📄")
|
| 1736 |
+
with gr.Accordion("微調", open=False):
|
| 1737 |
+
worksheet_exam_result_fine_tune_prompt = gr.Textbox(label="根據結果,輸入你想更改的想法")
|
| 1738 |
+
worksheet_exam_result_fine_tune_btn = gr.Button("微調結果")
|
| 1739 |
+
worksheet_exam_result_retrun_original = gr.Button("返回原始結果")
|
| 1740 |
+
with gr.Accordion("prompt", open=False):
|
| 1741 |
+
worksheet_prompt = gr.Textbox(label="worksheet_prompt", show_copy_button=True, lines=40)
|
| 1742 |
+
with gr.Column(scale=2):
|
| 1743 |
+
# 生成對應不同模式的結果
|
| 1744 |
+
worksheet_exam_result_prompt = gr.Textbox(visible=False)
|
| 1745 |
+
worksheet_exam_result_original = gr.Textbox(visible=False)
|
| 1746 |
+
worksheet_exam_result = gr.Textbox(label="初次生成結果", show_copy_button=True, interactive=True, lines=40)
|
| 1747 |
+
worksheet_download_exam_result_button = gr.Button("將结果轉成 word,完成後請點擊右下角 download 按鈕")
|
| 1748 |
+
worksheet_exam_result_word_link = gr.File(label="Download Word")
|
| 1749 |
+
|
| 1750 |
+
with gr.Tab("課程計畫"):
|
| 1751 |
+
with gr.Row():
|
| 1752 |
+
with gr.Column(scale=1):
|
| 1753 |
+
lesson_plan_content_type_name = gr.Textbox(value="lesson_plan", visible=False)
|
| 1754 |
+
lesson_plan_time = gr.Slider(label="選擇課程時間(分鐘)", minimum=10, maximum=120, step=5, value=40)
|
| 1755 |
+
lesson_plan_btn = gr.Button("生成課程計畫 📕")
|
| 1756 |
+
with gr.Accordion("微調", open=False):
|
| 1757 |
+
lesson_plan_exam_result_fine_tune_prompt = gr.Textbox(label="根據結果,輸入你想更改的想法")
|
| 1758 |
+
lesson_plan_exam_result_fine_tune_btn = gr.Button("微調結果")
|
| 1759 |
+
lesson_plan_exam_result_retrun_original = gr.Button("返回原始結果")
|
| 1760 |
+
with gr.Accordion("prompt", open=False):
|
| 1761 |
+
lesson_plan_prompt = gr.Textbox(label="worksheet_prompt", show_copy_button=True, lines=40)
|
| 1762 |
+
with gr.Column(scale=2):
|
| 1763 |
+
# 生成對應不同模式的結果
|
| 1764 |
+
lesson_plan_exam_result_prompt = gr.Textbox(visible=False)
|
| 1765 |
+
lesson_plan_exam_result_original = gr.Textbox(visible=False)
|
| 1766 |
+
lesson_plan_exam_result = gr.Textbox(label="初次生成結果", show_copy_button=True, interactive=True, lines=40)
|
| 1767 |
+
|
| 1768 |
+
lesson_plan_download_exam_result_button = gr.Button("將结果轉成 word,完成後請點擊右下角 download 按鈕")
|
| 1769 |
+
lesson_plan_exam_result_word_link = gr.File(label="Download Word")
|
| 1770 |
+
|
| 1771 |
+
with gr.Tab("出場券"):
|
| 1772 |
+
with gr.Row():
|
| 1773 |
+
with gr.Column(scale=1):
|
| 1774 |
+
exit_ticket_content_type_name = gr.Textbox(value="exit_ticket", visible=False)
|
| 1775 |
+
exit_ticket_time = gr.Slider(label="選擇出場券時間(分鐘)", minimum=5, maximum=10, step=1, value=8)
|
| 1776 |
+
exit_ticket_btn = gr.Button("生成出場券 🎟️")
|
| 1777 |
+
with gr.Accordion("微調", open=False):
|
| 1778 |
+
exit_ticket_exam_result_fine_tune_prompt = gr.Textbox(label="根據結果,輸入你想更改的想法")
|
| 1779 |
+
exit_ticket_exam_result_fine_tune_btn = gr.Button("微調結果")
|
| 1780 |
+
exit_ticket_exam_result_retrun_original = gr.Button("返回原始結果")
|
| 1781 |
+
with gr.Accordion("prompt", open=False):
|
| 1782 |
+
exit_ticket_prompt = gr.Textbox(label="worksheet_prompt", show_copy_button=True, lines=40)
|
| 1783 |
+
with gr.Column(scale=2):
|
| 1784 |
+
# 生成對應不同模式的結果
|
| 1785 |
+
exit_ticket_exam_result_prompt = gr.Textbox(visible=False)
|
| 1786 |
+
exit_ticket_exam_result_original = gr.Textbox(visible=False)
|
| 1787 |
+
exit_ticket_exam_result = gr.Textbox(label="初次生成結果", show_copy_button=True, interactive=True, lines=40)
|
| 1788 |
+
|
| 1789 |
+
exit_ticket_download_exam_result_button = gr.Button("將结果轉成 word,完成後請點擊右下角 download 按鈕")
|
| 1790 |
+
exit_ticket_exam_result_word_link = gr.File(label="Download Word")
|
| 1791 |
|
| 1792 |
|
| 1793 |
# with gr.Tab("素養導向閱讀題組"):
|