sonoisa commited on
Commit
f5826d0
·
1 Parent(s): 24393f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -131,6 +131,8 @@ answer = st.button("タイトル生成")
131
 
132
  if answer:
133
  qiita_body = str(body_text)
 
 
134
 
135
  MAX_SOURCE_LENGTH = 512 # 入力される記事本文の最大トークン数
136
  MAX_TARGET_LENGTH = 64 # 生成されるタイトルの最大トークン数
@@ -180,4 +182,4 @@ if answer:
180
  for i, title in enumerate(generated_titles):
181
  titles += f"1. {postprocess_title(title)}\n"
182
 
183
- st.markdown(titles)
 
131
 
132
  if answer:
133
  qiita_body = str(body_text)
134
+ title_fieids = st.empty()
135
+ title_fieids.markdown("生成中...")
136
 
137
  MAX_SOURCE_LENGTH = 512 # 入力される記事本文の最大トークン数
138
  MAX_TARGET_LENGTH = 64 # 生成されるタイトルの最大トークン数
 
182
  for i, title in enumerate(generated_titles):
183
  titles += f"1. {postprocess_title(title)}\n"
184
 
185
+ title_fieids.markdown(titles)