Yasu777 commited on
Commit
b7bad23
·
1 Parent(s): 5c1ddaf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -75,7 +75,7 @@ db.remove(Query().timestamp.test(lambda x: datetime.datetime.fromisoformat(x) <=
75
 
76
  # タイトルと説明
77
  st.title("Baby Writer")
78
- st.write("これは、与えられたキーワードを使用して記事を生成します。")
79
 
80
  # キーワード入力
81
  new_keyword = st.text_input("キーワード:")
@@ -126,7 +126,7 @@ if keyword_id: # キーワードIDが存在することを確認
126
  editable_output2 = ""
127
 
128
  # runボタン
129
- if st.button("記事構成作成", key=f"run_button_{keyword_id}"):
130
  with st.spinner("タイトル・見出し作成中..."):
131
  urls, keyword = get_top_urls_and_keyword(new_keyword)
132
  url1, url2, url3 = urls
@@ -174,8 +174,8 @@ if keyword_id: # キーワードIDが存在することを確認
174
  editable_output2 = st.text_area("output2.txtを編集してください:", value=editable_output2)
175
 
176
  # Plan-and-Execute Agentsのrun_third.py経由の処理
177
- if st.button("記事作成"):
178
- with st.spinner("記事作成中..."):
179
  subprocess.run(["python3", "run_third.py", editable_output2, keyword_id])
180
 
181
  # output3.txtの内容を読み込み、出力欄に表示
 
75
 
76
  # タイトルと説明
77
  st.title("Baby Writer")
78
+ st.write("これは、与えられたキーワードを使用して作ります。")
79
 
80
  # キーワード入力
81
  new_keyword = st.text_input("キーワード:")
 
126
  editable_output2 = ""
127
 
128
  # runボタン
129
+ if st.button("構成作成", key=f"run_button_{keyword_id}"):
130
  with st.spinner("タイトル・見出し作成中..."):
131
  urls, keyword = get_top_urls_and_keyword(new_keyword)
132
  url1, url2, url3 = urls
 
174
  editable_output2 = st.text_area("output2.txtを編集してください:", value=editable_output2)
175
 
176
  # Plan-and-Execute Agentsのrun_third.py経由の処理
177
+ if st.button("本文作成"):
178
+ with st.spinner("作成中..."):
179
  subprocess.run(["python3", "run_third.py", editable_output2, keyword_id])
180
 
181
  # output3.txtの内容を読み込み、出力欄に表示