Nagomi-SugarHeart commited on
Commit
ec90904
·
verified ·
1 Parent(s): c67ca68

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -78,7 +78,7 @@ with tab_post:
78
  # AI装飾機能
79
  if st.button("✨ AIモードでブログ風に装飾する"):
80
  if raw_content:
81
- model = genai.GenerativeModel(model_name='gemini-1.5-flash')
82
  prompt = f"以下の文章をブログ記事用に、読みやすいHTMLタグ(h3, p, strong, br等)を使って装飾してください。本文: {raw_content}"
83
  with st.spinner('Geminiが執筆中...'):
84
  ai_response = model.generate_content(prompt)
 
78
  # AI装飾機能
79
  if st.button("✨ AIモードでブログ風に装飾する"):
80
  if raw_content:
81
+ model = genai.GenerativeModel(model_name='gemini-2.5-flash')
82
  prompt = f"以下の文章をブログ記事用に、読みやすいHTMLタグ(h3, p, strong, br等)を使って装飾してください。本文: {raw_content}"
83
  with st.spinner('Geminiが執筆中...'):
84
  ai_response = model.generate_content(prompt)