Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -393,12 +393,12 @@ def main():
|
|
| 393 |
|
| 394 |
# 現在のAPIキー状態を表示
|
| 395 |
if st.session_state.current_api_key:
|
| 396 |
-
st.success("
|
| 397 |
# APIキーの一部を表示(セキュリティのため)
|
| 398 |
masked_key = st.session_state.current_api_key[:7] + "..." + st.session_state.current_api_key[-4:]
|
| 399 |
st.caption(f"現在のキー: {masked_key}")
|
| 400 |
else:
|
| 401 |
-
st.info("
|
| 402 |
|
| 403 |
# APIキー入力フォーム
|
| 404 |
with st.form("api_key_form"):
|
|
@@ -478,9 +478,6 @@ def main():
|
|
| 478 |
<p style="color: #78350F; font-size: 0.9rem; margin-top: 1rem;">
|
| 479 |
APIキーは <a href="https://platform.openai.com/api-keys" target="__blank" style="color: #F59E0B;">OpenAIのダッシュボード</a> から取得できます。
|
| 480 |
</p>
|
| 481 |
-
<p style="color: #78350F; font-size: 0.85rem; margin-top: 0.5rem; font-style: italic;">
|
| 482 |
-
※ APIキーは各ブラウザセッション専用です。他のユーザーと共有されません。
|
| 483 |
-
</p>
|
| 484 |
</div>
|
| 485 |
""",
|
| 486 |
unsafe_allow_html=True
|
|
|
|
| 393 |
|
| 394 |
# 現在のAPIキー状態を表示
|
| 395 |
if st.session_state.current_api_key:
|
| 396 |
+
st.success("APIキー設定済み")
|
| 397 |
# APIキーの一部を表示(セキュリティのため)
|
| 398 |
masked_key = st.session_state.current_api_key[:7] + "..." + st.session_state.current_api_key[-4:]
|
| 399 |
st.caption(f"現在のキー: {masked_key}")
|
| 400 |
else:
|
| 401 |
+
st.info("APIキーを入力してください")
|
| 402 |
|
| 403 |
# APIキー入力フォーム
|
| 404 |
with st.form("api_key_form"):
|
|
|
|
| 478 |
<p style="color: #78350F; font-size: 0.9rem; margin-top: 1rem;">
|
| 479 |
APIキーは <a href="https://platform.openai.com/api-keys" target="__blank" style="color: #F59E0B;">OpenAIのダッシュボード</a> から取得できます。
|
| 480 |
</p>
|
|
|
|
|
|
|
|
|
|
| 481 |
</div>
|
| 482 |
""",
|
| 483 |
unsafe_allow_html=True
|