Spaces:
Running
Running
Update app.py
Browse files
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-
|
| 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)
|