youngtsai commited on
Commit
0c24dbd
·
1 Parent(s): 25f3ebf

content_grade = gr.Dropdown(label="選擇年級", choices=["一年級", "二年級", "三年級", "四年級", "五年級", "六年級", "七年級", "八年級", "九年級", "十年級", "十一年級", "十二年級"], value="", visible=False)

Browse files
Files changed (1) hide show
  1. app.py +3 -10
app.py CHANGED
@@ -1894,8 +1894,8 @@ with gr.Blocks(theme=gr.themes.Base(primary_hue=gr.themes.colors.orange, seconda
1894
 
1895
  with gr.Tab("教師版"):
1896
  with gr.Row():
1897
- content_subject = gr.Dropdown(label="選擇主題", choices=["數學", "自然", "國文", "英文", "社會","物理", "化學", "生物", "地理", "歷史", "公民"], value="數學", visible=False)
1898
- content_grade = gr.Dropdown(label="選擇年級", choices=["一年級", "二年級", "三年級", "四年級", "五年級", "六年級", "七年級", "八年級", "九年級", "十年級", "十一年級", "十二年級"], value="三年級", visible=False)
1899
  content_level = gr.Dropdown(label="差異化教學", choices=["基礎", "中級", "進階"], value="基礎")
1900
  with gr.Row():
1901
  with gr.Tab("學習單"):
@@ -2071,14 +2071,7 @@ with gr.Blocks(theme=gr.themes.Base(primary_hue=gr.themes.colors.orange, seconda
2071
  # 当输入网页链接时触发
2072
  # web_link.change(process_web_link, inputs=web_link, outputs=[btn_1, btn_2, btn_3, df_summarise, df_string_output])
2073
 
2074
- # 文章模式
2075
- reading_passage_speak_button.click(
2076
- text_to_speech,
2077
- inputs=[video_id, reading_passage],
2078
- outputs=reading_passage_audio_output
2079
- )
2080
-
2081
- # 教師版 學習單
2082
  worksheet_content_btn.click(
2083
  get_ai_content,
2084
  inputs=[password, video_id, df_string_output, content_subject, content_grade, content_level, worksheet_algorithm, worksheet_content_type_name],
 
1894
 
1895
  with gr.Tab("教師版"):
1896
  with gr.Row():
1897
+ content_subject = gr.Dropdown(label="選擇主題", choices=["數學", "自然", "國文", "英文", "社會","物理", "化學", "生物", "地理", "歷史", "公民"], value="", visible=False)
1898
+ content_grade = gr.Dropdown(label="選擇年級", choices=["一年級", "二年級", "三年級", "四年級", "五年級", "六年級", "七年級", "八年級", "九年級", "十年級", "十一年級", "十二年級"], value="", visible=False)
1899
  content_level = gr.Dropdown(label="差異化教學", choices=["基礎", "中級", "進階"], value="基礎")
1900
  with gr.Row():
1901
  with gr.Tab("學習單"):
 
2071
  # 当输入网页链接时触发
2072
  # web_link.change(process_web_link, inputs=web_link, outputs=[btn_1, btn_2, btn_3, df_summarise, df_string_output])
2073
 
2074
+ # 教師版
 
 
 
 
 
 
 
2075
  worksheet_content_btn.click(
2076
  get_ai_content,
2077
  inputs=[password, video_id, df_string_output, content_subject, content_grade, content_level, worksheet_algorithm, worksheet_content_type_name],