Spaces:
Sleeping
Sleeping
with gr.Accordion("微調", open=False):
Browse files
app.py
CHANGED
|
@@ -1679,6 +1679,10 @@ with gr.Blocks() as demo:
|
|
| 1679 |
worksheet_content_type_name = gr.Textbox(value="worksheet", visible=False)
|
| 1680 |
worksheet_algorithm = gr.Dropdown(label="選擇教學策略或理論", choices=["Bloom認知階層理論", "Polya數學解題法", "CRA教學法"], value="Bloom認知階層理論")
|
| 1681 |
worksheet_content_btn = gr.Button("生成學習單 📄")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1682 |
with gr.Accordion("prompt", open=False):
|
| 1683 |
worksheet_prompt = gr.Textbox(label="worksheet_prompt", show_copy_button=True, lines=40)
|
| 1684 |
with gr.Column(scale=2):
|
|
@@ -1686,9 +1690,6 @@ with gr.Blocks() as demo:
|
|
| 1686 |
worksheet_exam_result_prompt = gr.Textbox(visible=False)
|
| 1687 |
worksheet_exam_result_original = gr.Textbox(visible=False)
|
| 1688 |
worksheet_exam_result = gr.Textbox(label="初次生成結果", show_copy_button=True, interactive=True)
|
| 1689 |
-
worksheet_exam_result_fine_tune_prompt = gr.Textbox(label="根據結果,輸入你想更改的想法")
|
| 1690 |
-
worksheet_exam_result_fine_tune_btn = gr.Button("微調結果")
|
| 1691 |
-
worksheet_exam_result_retrun_original = gr.Button("返回原始結果")
|
| 1692 |
worksheet_download_exam_result_button = gr.Button("將结果轉成 word,完成後請點擊右下角 download 按鈕")
|
| 1693 |
worksheet_exam_result_word_link = gr.File(label="Download Word")
|
| 1694 |
|
|
@@ -1698,6 +1699,10 @@ with gr.Blocks() as demo:
|
|
| 1698 |
lesson_plan_content_type_name = gr.Textbox(value="lesson_plan", visible=False)
|
| 1699 |
lesson_plan_time = gr.Slider(label="選擇課程時間(分鐘)", minimum=10, maximum=120, step=5, value=40)
|
| 1700 |
lesson_plan_btn = gr.Button("生成課程計畫 📕")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1701 |
with gr.Accordion("prompt", open=False):
|
| 1702 |
lesson_plan_prompt = gr.Textbox(label="worksheet_prompt", show_copy_button=True, lines=40)
|
| 1703 |
with gr.Column(scale=2):
|
|
@@ -1705,9 +1710,7 @@ with gr.Blocks() as demo:
|
|
| 1705 |
lesson_plan_exam_result_prompt = gr.Textbox(visible=False)
|
| 1706 |
lesson_plan_exam_result_original = gr.Textbox(visible=False)
|
| 1707 |
lesson_plan_exam_result = gr.Textbox(label="初次生成結果", show_copy_button=True, interactive=True)
|
| 1708 |
-
|
| 1709 |
-
lesson_plan_exam_result_fine_tune_btn = gr.Button("微調結果")
|
| 1710 |
-
lesson_plan_exam_result_retrun_original = gr.Button("返回原始結果")
|
| 1711 |
lesson_plan_download_exam_result_button = gr.Button("將结果轉成 word,完成後請點擊右下角 download 按鈕")
|
| 1712 |
lesson_plan_exam_result_word_link = gr.File(label="Download Word")
|
| 1713 |
|
|
@@ -1717,6 +1720,10 @@ with gr.Blocks() as demo:
|
|
| 1717 |
exit_ticket_content_type_name = gr.Textbox(value="exit_ticket", visible=False)
|
| 1718 |
exit_ticket_time = gr.Slider(label="選擇出場券時間(分鐘)", minimum=5, maximum=10, step=1, value=8)
|
| 1719 |
exit_ticket_btn = gr.Button("生成出場券 🎟️")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1720 |
with gr.Accordion("prompt", open=False):
|
| 1721 |
exit_ticket_prompt = gr.Textbox(label="worksheet_prompt", show_copy_button=True, lines=40)
|
| 1722 |
with gr.Column(scale=2):
|
|
@@ -1724,9 +1731,7 @@ with gr.Blocks() as demo:
|
|
| 1724 |
exit_ticket_exam_result_prompt = gr.Textbox(visible=False)
|
| 1725 |
exit_ticket_exam_result_original = gr.Textbox(visible=False)
|
| 1726 |
exit_ticket_exam_result = gr.Textbox(label="初次生成結果", show_copy_button=True, interactive=True)
|
| 1727 |
-
|
| 1728 |
-
exit_ticket_exam_result_fine_tune_btn = gr.Button("微調結果")
|
| 1729 |
-
exit_ticket_exam_result_retrun_original = gr.Button("返回原始結果")
|
| 1730 |
exit_ticket_download_exam_result_button = gr.Button("將结果轉成 word,完成後請點擊右下角 download 按鈕")
|
| 1731 |
exit_ticket_exam_result_word_link = gr.File(label="Download Word")
|
| 1732 |
|
|
|
|
| 1679 |
worksheet_content_type_name = gr.Textbox(value="worksheet", visible=False)
|
| 1680 |
worksheet_algorithm = gr.Dropdown(label="選擇教學策略或理論", choices=["Bloom認知階層理論", "Polya數學解題法", "CRA教學法"], value="Bloom認知階層理論")
|
| 1681 |
worksheet_content_btn = gr.Button("生成學習單 📄")
|
| 1682 |
+
with gr.Accordion("微調", open=False):
|
| 1683 |
+
worksheet_exam_result_fine_tune_prompt = gr.Textbox(label="根據結果,輸入你想更改的想法")
|
| 1684 |
+
worksheet_exam_result_fine_tune_btn = gr.Button("微調結果")
|
| 1685 |
+
worksheet_exam_result_retrun_original = gr.Button("返回原始結果")
|
| 1686 |
with gr.Accordion("prompt", open=False):
|
| 1687 |
worksheet_prompt = gr.Textbox(label="worksheet_prompt", show_copy_button=True, lines=40)
|
| 1688 |
with gr.Column(scale=2):
|
|
|
|
| 1690 |
worksheet_exam_result_prompt = gr.Textbox(visible=False)
|
| 1691 |
worksheet_exam_result_original = gr.Textbox(visible=False)
|
| 1692 |
worksheet_exam_result = gr.Textbox(label="初次生成結果", show_copy_button=True, interactive=True)
|
|
|
|
|
|
|
|
|
|
| 1693 |
worksheet_download_exam_result_button = gr.Button("將结果轉成 word,完成後請點擊右下角 download 按鈕")
|
| 1694 |
worksheet_exam_result_word_link = gr.File(label="Download Word")
|
| 1695 |
|
|
|
|
| 1699 |
lesson_plan_content_type_name = gr.Textbox(value="lesson_plan", visible=False)
|
| 1700 |
lesson_plan_time = gr.Slider(label="選擇課程時間(分鐘)", minimum=10, maximum=120, step=5, value=40)
|
| 1701 |
lesson_plan_btn = gr.Button("生成課程計畫 📕")
|
| 1702 |
+
with gr.Accordion("微調", open=False):
|
| 1703 |
+
lesson_plan_exam_result_fine_tune_prompt = gr.Textbox(label="根據結果,輸入你想更改的想法")
|
| 1704 |
+
lesson_plan_exam_result_fine_tune_btn = gr.Button("微調結果")
|
| 1705 |
+
lesson_plan_exam_result_retrun_original = gr.Button("返回原始結果")
|
| 1706 |
with gr.Accordion("prompt", open=False):
|
| 1707 |
lesson_plan_prompt = gr.Textbox(label="worksheet_prompt", show_copy_button=True, lines=40)
|
| 1708 |
with gr.Column(scale=2):
|
|
|
|
| 1710 |
lesson_plan_exam_result_prompt = gr.Textbox(visible=False)
|
| 1711 |
lesson_plan_exam_result_original = gr.Textbox(visible=False)
|
| 1712 |
lesson_plan_exam_result = gr.Textbox(label="初次生成結果", show_copy_button=True, interactive=True)
|
| 1713 |
+
|
|
|
|
|
|
|
| 1714 |
lesson_plan_download_exam_result_button = gr.Button("將结果轉成 word,完成後請點擊右下角 download 按鈕")
|
| 1715 |
lesson_plan_exam_result_word_link = gr.File(label="Download Word")
|
| 1716 |
|
|
|
|
| 1720 |
exit_ticket_content_type_name = gr.Textbox(value="exit_ticket", visible=False)
|
| 1721 |
exit_ticket_time = gr.Slider(label="選擇出場券時間(分鐘)", minimum=5, maximum=10, step=1, value=8)
|
| 1722 |
exit_ticket_btn = gr.Button("生成出場券 🎟️")
|
| 1723 |
+
with gr.Accordion("微調", open=False):
|
| 1724 |
+
exit_ticket_exam_result_fine_tune_prompt = gr.Textbox(label="根據結果,輸入你想更改的想法")
|
| 1725 |
+
exit_ticket_exam_result_fine_tune_btn = gr.Button("微調結果")
|
| 1726 |
+
exit_ticket_exam_result_retrun_original = gr.Button("返回原始結果")
|
| 1727 |
with gr.Accordion("prompt", open=False):
|
| 1728 |
exit_ticket_prompt = gr.Textbox(label="worksheet_prompt", show_copy_button=True, lines=40)
|
| 1729 |
with gr.Column(scale=2):
|
|
|
|
| 1731 |
exit_ticket_exam_result_prompt = gr.Textbox(visible=False)
|
| 1732 |
exit_ticket_exam_result_original = gr.Textbox(visible=False)
|
| 1733 |
exit_ticket_exam_result = gr.Textbox(label="初次生成結果", show_copy_button=True, interactive=True)
|
| 1734 |
+
|
|
|
|
|
|
|
| 1735 |
exit_ticket_download_exam_result_button = gr.Button("將结果轉成 word,完成後請點擊右下角 download 按鈕")
|
| 1736 |
exit_ticket_exam_result_word_link = gr.File(label="Download Word")
|
| 1737 |
|