youngtsai commited on
Commit
656d53f
·
1 Parent(s): 5ac7c3b

with gr.Row(elem_id="paragraph_save_output"):

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -749,8 +749,8 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue=gr.themes.colors.blue, secondary
749
  english_grapragh_evaluate_button = gr.Button("📊 英文段落寫作評分")
750
  with gr.Column():
751
  english_exam_practice_tab_button = gr.Button("🎯 英文考古題寫作練習")
 
752
  with gr.Row(visible=True) as english_grapragh_practice_row:
753
- # ===== 英文段落寫作練習 =====
754
  with gr.Column():
755
  with gr.Row():
756
  gr.Markdown("# 📝 英文段落寫作練習")
@@ -1516,7 +1516,7 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue=gr.themes.colors.blue, secondary
1516
  gr.Markdown("## 完成修訂!你按部就班地完成了一次段落寫作練習,太棒了!")
1517
  with gr.Row():
1518
  paragraph_save_button = gr.Button("建立歷程回顧", variant="primary")
1519
- with gr.Row():
1520
  with gr.Accordion("歷程回顧", open=False) as history_accordion:
1521
  scenario_input_history = gr.Textbox(label="情境", visible=False)
1522
  gr.Markdown("<span style='color:#4e80ee'>主題</span>")
@@ -1584,8 +1584,8 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue=gr.themes.colors.blue, secondary
1584
  outputs=history_accordion
1585
  )
1586
 
 
1587
  with gr.Row(visible=False) as english_grapragh_evaluate_row:
1588
- # ====="英文全文批改"=====
1589
  with gr.Column():
1590
  with gr.Row(visible=False) as full_paragraph_params:
1591
  full_paragraph_sys_content_input = gr.Textbox(label="System Prompt", value="You are an English teacher who is practicing with me to improve my English writing skill.")
@@ -1685,9 +1685,10 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue=gr.themes.colors.blue, secondary
1685
  inputs=[full_paragraph_refine_input],
1686
  outputs=[full_paragraph_save_output, full_audio_output]
1687
  )
1688
-
 
1689
  with gr.Row(visible=False) as english_exam_practice_row:
1690
- # ====="英文考古題寫作練習====="
1691
  with gr.Column():
1692
  with gr.Row():
1693
  with gr.Column():
 
749
  english_grapragh_evaluate_button = gr.Button("📊 英文段落寫作評分")
750
  with gr.Column():
751
  english_exam_practice_tab_button = gr.Button("🎯 英文考古題寫作練習")
752
+ # ===== 英文段落寫作練習 =====
753
  with gr.Row(visible=True) as english_grapragh_practice_row:
 
754
  with gr.Column():
755
  with gr.Row():
756
  gr.Markdown("# 📝 英文段落寫作練習")
 
1516
  gr.Markdown("## 完成修訂!你按部就班地完成了一次段落寫作練習,太棒了!")
1517
  with gr.Row():
1518
  paragraph_save_button = gr.Button("建立歷程回顧", variant="primary")
1519
+ with gr.Row(elem_id="paragraph_save_output"):
1520
  with gr.Accordion("歷程回顧", open=False) as history_accordion:
1521
  scenario_input_history = gr.Textbox(label="情境", visible=False)
1522
  gr.Markdown("<span style='color:#4e80ee'>主題</span>")
 
1584
  outputs=history_accordion
1585
  )
1586
 
1587
+ # ====="英文全文批改"=====
1588
  with gr.Row(visible=False) as english_grapragh_evaluate_row:
 
1589
  with gr.Column():
1590
  with gr.Row(visible=False) as full_paragraph_params:
1591
  full_paragraph_sys_content_input = gr.Textbox(label="System Prompt", value="You are an English teacher who is practicing with me to improve my English writing skill.")
 
1685
  inputs=[full_paragraph_refine_input],
1686
  outputs=[full_paragraph_save_output, full_audio_output]
1687
  )
1688
+
1689
+ # ====="英文考古題寫作練習====="
1690
  with gr.Row(visible=False) as english_exam_practice_row:
1691
+
1692
  with gr.Column():
1693
  with gr.Row():
1694
  with gr.Column():