dayuian commited on
Commit
7b56b37
·
verified ·
1 Parent(s): b346a8c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -72,7 +72,7 @@ with gr.Blocks(css="""
72
 
73
  with gr.Group(elem_id="card-group"):
74
  word_input = gr.Textbox(label="輸入單字", visible=True)
75
- num_input = gr.Number(label="抽取單字數量", value=5, visible=False)
76
  source_dropdown = gr.Dropdown(
77
  choices=get_sources(),
78
  value="common3000",
@@ -89,7 +89,7 @@ with gr.Blocks(css="""
89
  label="選擇 AI 模型",
90
  visible=False
91
  )
92
- gr.Markdown("🔷 **建議使用 GPT2(表現較佳),Pythia-410m 很爛慎選!**", visible=False)
93
 
94
  ai_warning = gr.Textbox(
95
  value="⚠️ 若使用 AI 生成句子,生成過程可能需要 30 秒以上,請耐心等待。",
 
72
 
73
  with gr.Group(elem_id="card-group"):
74
  word_input = gr.Textbox(label="輸入單字", visible=True)
75
+ num_input = gr.Slider(minimum=1, maximum=10,value=5,label="抽取單字數量")
76
  source_dropdown = gr.Dropdown(
77
  choices=get_sources(),
78
  value="common3000",
 
89
  label="選擇 AI 模型",
90
  visible=False
91
  )
92
+ gr.Markdown("🔷 **建議使用 GPT2(表現較佳),Pythia-410m 很爛慎選!**", visible=False)
93
 
94
  ai_warning = gr.Textbox(
95
  value="⚠️ 若使用 AI 生成句子,生成過程可能需要 30 秒以上,請耐心等待。",