Spaces:
Sleeping
Sleeping
no css gray
Browse files
app.py
CHANGED
@@ -480,8 +480,6 @@ CSS = """
|
|
480 |
.accordion-prompts {
|
481 |
background-color: orange;
|
482 |
}
|
483 |
-
.accordion-gray {
|
484 |
-
}
|
485 |
"""
|
486 |
|
487 |
with gr.Blocks(theme=gr.themes.Soft(primary_hue=gr.themes.colors.blue, secondary_hue=gr.themes.colors.orange), css=CSS) as demo:
|
@@ -529,7 +527,7 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue=gr.themes.colors.blue, secondary
|
|
529 |
with gr.Column():
|
530 |
gr.Markdown("""## 主題是整個段落要探討、闡述的主要議題。確定主題對於段落的架構、內容非常重要,幫助讀者預期段落的內容,增加閱讀的速度及理解度。寫作過程中,掌握主題可以幫助作者有效傳達自己的想法和觀點,幫助讀者更容易理解。""")
|
531 |
with gr.Column():
|
532 |
-
with gr.Accordion("參考指引:情境與主題如何搭配呢?", open=False
|
533 |
gr.Markdown("""
|
534 |
例如,情境是 `School & Learning` ,你可以依照自己的興趣、背景及經驗,決定合適的主題,像是:`My First Day at School` 或 `The Role of Internet in Learning`
|
535 |
例如,情境是 `Climate Change`,相關主題可能是 `Global Warming` 或 `Extreme Weather Events`
|
@@ -661,7 +659,7 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue=gr.themes.colors.blue, secondary
|
|
661 |
gr.Markdown("## 主題句通常位於段落的開頭,幫助讀者迅速理解段落的內容。如果沒有主題句,段落的架構及內容的一致性及連貫性就會受影響。")
|
662 |
gr.Markdown("## 主題句的範圍,應能適當含括你剛才決定的各個要點,範圍不要太大,以致無法在一個段落清楚説明,也不能太小,無法含括段落的所有要點。")
|
663 |
with gr.Column():
|
664 |
-
with gr.Accordion("參考指引:合適的主題句?", open=False
|
665 |
gr.Markdown("""舉例,情境是 `School & Learning`,段落主題是 `Time Management`,那麼 `Balancing school work and leisure time is a crucial aspect of effective time management` 就是合適的主題句,因為它清楚點出該段落將説明有效運用時間來讓課業及娛樂取得平衡。""")
|
666 |
with gr.Row():
|
667 |
with gr.Column():
|
@@ -737,7 +735,7 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue=gr.themes.colors.blue, secondary
|
|
737 |
with gr.Column():
|
738 |
gr.Markdown("### 支持句:以支持句來解釋要點,必要時舉例説明,來支持主題句。這些句子應該按照邏輯順序來組織,例如時間順序、空間順序、重要性順序、因果關係等。並使用轉折詞來引導讀者從一個 idea 到下一個 idea,讓讀者讀起來很順暢,不需反覆閱讀。")
|
739 |
with gr.Column():
|
740 |
-
with gr.Accordion("參考指引:撰寫支持句的方法?", open=False
|
741 |
gr.Markdown("""
|
742 |
- Explanation 解釋説明:說明居住城市的優點,例如住在城市可享受便利的交通。
|
743 |
- Fact 陳述事實:説明運動可以增強心肺功能和肌肉力量,對於身體健康有正面影響。
|
@@ -747,7 +745,7 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue=gr.themes.colors.blue, secondary
|
|
747 |
- Evidence 提供證據:引用相關數據、研究或事實來佐證。例如全球互聯網用戶數已經突破了 50 億人,佔全球總人口近 65%。
|
748 |
- Example 舉例:舉自家為例,説明如何將家事的責任分配給每個家庭成員。
|
749 |
""")
|
750 |
-
with gr.Accordion("參考指引:針對要點的支持句,要寫幾句呢?", open=False
|
751 |
gr.Markdown("""
|
752 |
- 一個要點,寫 3-6 句
|
753 |
- 兩個要點,每個要點寫 2-3 句
|
@@ -814,7 +812,7 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue=gr.themes.colors.blue, secondary
|
|
814 |
with gr.Column():
|
815 |
gr.Markdown("## 總結主要觀點,強化整個資訊的傳遞。重述、摘要、回應或評論主題句。")
|
816 |
with gr.Column():
|
817 |
-
with gr.Accordion("參考指引:撰寫結論句的方法?", open=False
|
818 |
gr.Markdown("""
|
819 |
- 以換句話說 (paraphrase) 的方式把主題句再說一次
|
820 |
- 摘要三要點方式寫結論句
|
@@ -862,7 +860,7 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue=gr.themes.colors.blue, secondary
|
|
862 |
3. 整個段落是否連貫、流暢、容易理解
|
863 |
""")
|
864 |
with gr.Column():
|
865 |
-
with gr.Accordion("參考指引:什麼是段落的連貫性?", open=False
|
866 |
gr.Markdown("""
|
867 |
- 能夠以清晰、邏輯的方式表達自己的想法,使讀者易於理解。
|
868 |
- 連貫的段落應該有一個清晰的主題句來介紹主要想法(main idea),接著是支持句,提供更多細節和例子來支持主題句。
|
@@ -1036,7 +1034,7 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue=gr.themes.colors.blue, secondary
|
|
1036 |
with gr.Column():
|
1037 |
gr.Markdown("## 修訂文法與拼字錯誤(Correct Grammatical and Spelling Errors)")
|
1038 |
with gr.Column():
|
1039 |
-
with gr.Accordion("參考指引:AI 的混淆狀況?", open=False
|
1040 |
gr.Markdown("""
|
1041 |
- 段落寫作的過程,如果全程採用 JUTOR 的建議例句,則不會有文法與拼字錯誤。JUTOR 有時後仍會挑出一些字詞修訂,並非原本字詞錯誤,而是改換不同說法,你可以參考。
|
1042 |
- 若是自行完成段落寫作,則不會發生自我修訂的混淆狀況。
|
@@ -1109,7 +1107,7 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue=gr.themes.colors.blue, secondary
|
|
1109 |
|
1110 |
with gr.Row() as paragraph_refine_html:
|
1111 |
gr.Markdown("# Step 9. 段落改善建議(Refine Paragraph)")
|
1112 |
-
with gr.Accordion("參考指引:段落改善建議?", open=False
|
1113 |
gr.Markdown("""
|
1114 |
- 段落寫作的過程,如果全程採用 JUTOR 的建議例句,在這部分的批改可能會發生自我修訂的現象。例如:為了符合級別需求,JUTOR 會將自已建議的例句,以換句話說的方式再次修改,你可以忽略。
|
1115 |
- 若是自行完成段落寫作,則不會發生自我修訂的混淆狀況。
|
@@ -1153,7 +1151,7 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue=gr.themes.colors.blue, secondary
|
|
1153 |
with gr.Row():
|
1154 |
paragraph_save_button = gr.Button("建立歷程回顧", variant="primary")
|
1155 |
with gr.Row():
|
1156 |
-
with gr.Accordion("歷程回顧", open=False
|
1157 |
scenario_input_history = gr.Textbox(label="情境")
|
1158 |
topic_input_history = gr.Textbox(label="主題")
|
1159 |
points_input_history = gr.Textbox(label="要點")
|
@@ -1481,7 +1479,7 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue=gr.themes.colors.blue, secondary
|
|
1481 |
with gr.Row():
|
1482 |
past_exam_question = gr.Markdown()
|
1483 |
with gr.Row():
|
1484 |
-
with gr.Accordion("提示", open=False
|
1485 |
with gr.Row():
|
1486 |
past_exam_hint = gr.Markdown()
|
1487 |
with gr.Column():
|
|
|
480 |
.accordion-prompts {
|
481 |
background-color: orange;
|
482 |
}
|
|
|
|
|
483 |
"""
|
484 |
|
485 |
with gr.Blocks(theme=gr.themes.Soft(primary_hue=gr.themes.colors.blue, secondary_hue=gr.themes.colors.orange), css=CSS) as demo:
|
|
|
527 |
with gr.Column():
|
528 |
gr.Markdown("""## 主題是整個段落要探討、闡述的主要議題。確定主題對於段落的架構、內容非常重要,幫助讀者預期段落的內容,增加閱讀的速度及理解度。寫作過程中,掌握主題可以幫助作者有效傳達自己的想法和觀點,幫助讀者更容易理解。""")
|
529 |
with gr.Column():
|
530 |
+
with gr.Accordion("參考指引:情境與主題如何搭配呢?", open=False):
|
531 |
gr.Markdown("""
|
532 |
例如,情境是 `School & Learning` ,你可以依照自己的興趣、背景及經驗,決定合適的主題,像是:`My First Day at School` 或 `The Role of Internet in Learning`
|
533 |
例如,情境是 `Climate Change`,相關主題可能是 `Global Warming` 或 `Extreme Weather Events`
|
|
|
659 |
gr.Markdown("## 主題句通常位於段落的開頭,幫助讀者迅速理解段落的內容。如果沒有主題句,段落的架構及內容的一致性及連貫性就會受影響。")
|
660 |
gr.Markdown("## 主題句的範圍,應能適當含括你剛才決定的各個要點,範圍不要太大,以致無法在一個段落清楚説明,也不能太小,無法含括段落的所有要點。")
|
661 |
with gr.Column():
|
662 |
+
with gr.Accordion("參考指引:合適的主題句?", open=False):
|
663 |
gr.Markdown("""舉例,情境是 `School & Learning`,段落主題是 `Time Management`,那麼 `Balancing school work and leisure time is a crucial aspect of effective time management` 就是合適的主題句,因為它清楚點出該段落將説明有效運用時間來讓課業及娛樂取得平衡。""")
|
664 |
with gr.Row():
|
665 |
with gr.Column():
|
|
|
735 |
with gr.Column():
|
736 |
gr.Markdown("### 支持句:以支持句來解釋要點,必要時舉例説明,來支持主題句。這些句子應該按照邏輯順序來組織,例如時間順序、空間順序、重要性順序、因果關係等。並使用轉折詞來引導讀者從一個 idea 到下一個 idea,讓讀者讀起來很順暢,不需反覆閱讀。")
|
737 |
with gr.Column():
|
738 |
+
with gr.Accordion("參考指引:撰寫支持句的方法?", open=False):
|
739 |
gr.Markdown("""
|
740 |
- Explanation 解釋説明:說明居住城市的優點,例如住在城市可享受便利的交通。
|
741 |
- Fact 陳述事實:説明運動可以增強心肺功能和肌肉力量,對於身體健康有正面影響。
|
|
|
745 |
- Evidence 提供證據:引用相關數據、研究或事實來佐證。例如全球互聯網用戶數已經突破了 50 億人,佔全球總人口近 65%。
|
746 |
- Example 舉例:舉自家為例,説明如何將家事的責任分配給每個家庭成員。
|
747 |
""")
|
748 |
+
with gr.Accordion("參考指引:針對要點的支持句,要寫幾句呢?", open=False):
|
749 |
gr.Markdown("""
|
750 |
- 一個要點,寫 3-6 句
|
751 |
- 兩個要點,每個要點寫 2-3 句
|
|
|
812 |
with gr.Column():
|
813 |
gr.Markdown("## 總結主要觀點,強化整個資訊的傳遞。重述、摘要、回應或評論主題句。")
|
814 |
with gr.Column():
|
815 |
+
with gr.Accordion("參考指引:撰寫結論句的方法?", open=False):
|
816 |
gr.Markdown("""
|
817 |
- 以換句話說 (paraphrase) 的方式把主題句再說一次
|
818 |
- 摘要三要點方式寫結論句
|
|
|
860 |
3. 整個段落是否連貫、流暢、容易理解
|
861 |
""")
|
862 |
with gr.Column():
|
863 |
+
with gr.Accordion("參考指引:什麼是段落的連貫性?", open=False):
|
864 |
gr.Markdown("""
|
865 |
- 能夠以清晰、邏輯的方式表達自己的想法,使讀者易於理解。
|
866 |
- 連貫的段落應該有一個清晰的主題句來介紹主要想法(main idea),接著是支持句,提供更多細節和例子來支持主題句。
|
|
|
1034 |
with gr.Column():
|
1035 |
gr.Markdown("## 修訂文法與拼字錯誤(Correct Grammatical and Spelling Errors)")
|
1036 |
with gr.Column():
|
1037 |
+
with gr.Accordion("參考指引:AI 的混淆狀況?", open=False):
|
1038 |
gr.Markdown("""
|
1039 |
- 段落寫作的過程,如果全程採用 JUTOR 的建議例句,則不會有文法與拼字錯誤。JUTOR 有時後仍會挑出一些字詞修訂,並非原本字詞錯誤,而是改換不同說法,你可以參考。
|
1040 |
- 若是自行完成段落寫作,則不會發生自我修訂的混淆狀況。
|
|
|
1107 |
|
1108 |
with gr.Row() as paragraph_refine_html:
|
1109 |
gr.Markdown("# Step 9. 段落改善建議(Refine Paragraph)")
|
1110 |
+
with gr.Accordion("參考指引:段落改善建議?", open=False ):
|
1111 |
gr.Markdown("""
|
1112 |
- 段落寫作的過程,如果全程採用 JUTOR 的建議例句,在這部分的批改可能會發生自我修訂的現象。例如:為了符合級別需求,JUTOR 會將自已建議的例句,以換句話說的方式再次修改,你可以忽略。
|
1113 |
- 若是自行完成段落寫作,則不會發生自我修訂的混淆狀況。
|
|
|
1151 |
with gr.Row():
|
1152 |
paragraph_save_button = gr.Button("建立歷程回顧", variant="primary")
|
1153 |
with gr.Row():
|
1154 |
+
with gr.Accordion("歷程回顧", open=False) as history_accordion:
|
1155 |
scenario_input_history = gr.Textbox(label="情境")
|
1156 |
topic_input_history = gr.Textbox(label="主題")
|
1157 |
points_input_history = gr.Textbox(label="要點")
|
|
|
1479 |
with gr.Row():
|
1480 |
past_exam_question = gr.Markdown()
|
1481 |
with gr.Row():
|
1482 |
+
with gr.Accordion("提示", open=False):
|
1483 |
with gr.Row():
|
1484 |
past_exam_hint = gr.Markdown()
|
1485 |
with gr.Column():
|